Click to See Complete Forum and Search --> : Verify in code if all the variable was declare is't possible


regis
March 26th, 2001, 03:25 PM
Is't a function in VB6 exist to verify if all the variable util in code was declare...

Because when I try to make exe a received many error because some variable was not declare.

And it was long to verify this line after line.

Some body can help me?

Sorry for my bad english

Thanks
redg

phil m
March 26th, 2001, 05:30 PM
In general declarations have you written

option explicit

This should make sure that variables are delared or, if not, VB will call an error.

Phil

shree
March 26th, 2001, 07:28 PM
Go to the Tools Menu and Select Options. Then in the Editor tab of the dialog box that appears, check the box Require Variable Declaration.

This works the same as option explicit, except that you won't have to remember to write option explicit on every form and module.