Author Topic: VB Error  (Read 495 times)

0 Members and 1 Guest are viewing this topic.

UnKnOwNCoDe

  • Intentional Cheater
  • **
  • Posts: 40
    • View Profile
VB Error
« on: August 17, 2007, 05:43:31 pm »
.
« Last Edit: May 28, 2012, 11:47:31 pm by UnKnOwNCoDe »

UnKnOwNCoDe

  • Intentional Cheater
  • **
  • Posts: 40
    • View Profile
Re: VB Error
« Reply #1 on: August 17, 2007, 10:02:45 pm »
Problem was I messed up when adding labels..Fixed it by deleting them all and remaking them.

[TKC]Symantic

  • The Indifferent Character
  • The Central Committee
  • Heckler
  • *
  • Posts: 1647
  • I can has personal text?
    • View Profile
Re: VB Error
« Reply #2 on: August 19, 2007, 04:24:39 am »
I did this EXACT tutorial or whatever a while back, but i made mine so i can change team names and put homeruns and keeps track of homeruns/runs. was pretty funny.

a tip when adding numbers (E.G. 2+5) Use the Cint() function
so code would look like

Cint(text1) + Cint (text2) = Label1

or something like that.

otherwise if you do text1 + text2 = Label1 where text1 is 2 and text2 is 5 then the answer would be 25, you need to use Cint() even if you dim text1 and text2 as integer.
Enjoy your creative game-play, whatever that may include.