Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
declair variables?
#1
i was screwing around, w/ fb and noticed that my program would work even though i didnt dim my var's!!! wtf is going on? it was a stupid program

for i = 1 to 1000
print "hello world"
print i
next

but that was it.....???
url=http://www.random-seed.net][Image: asylumsig.png][/url]
Reply
#2
And the problem is?

BASIC doesent require var initialization.

You can add OPTION EXPLICIT to the top of your code to force variables to always need initialization.


wtf, omg, lol, roflmao!!!1111 :roll:
Reply
#3
i was using a basic program that required initialization of variables before usage...so i'm used to it....+ not new @ programming, just new @ basic
url=http://www.random-seed.net][Image: asylumsig.png][/url]
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)