Discussion Locked

what is the Library?

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I have make a program with VB6
but when i write like this :
For I =0 to 10
statments
next i
i didn't write : dim i as integer
so VB give me error message for the reference
so what dll file i need to use for this problem ?
thankyou for your help

5 replies

by kevin.riggs

VB allows you to implicitly declare variables unless you change the default setting. If you add the "OPTION EXPLICIT" command in the Declarations section of your code, then you must explicitly declare all variables before you use them. If you leave off this environment setting, then you can cause VB to implicitly create the variable at compile time by simply starting to use the variable.

Are you sure your error message was because of the variable?

by rsv

HI,
If you specified "OPTION EXPLICIT" at the top of the Declarations section, then you have to declare the variables before you use them, if you don't specified the "OPTION EXPLICIT" command, no need to declare the variables, VB will implicitly creates the variables at compile time. I hope the error message for the reference, which u r getting is not related to this variable declaration.

Hope this is helps you.
GOOD LUCK...:)

This discussion is closed to new replies.