vb question

Status
Not open for further replies.

allan16

In Runtime
Messages
378
Hi:

I just cannot remenber this.
How is it that you define Global Variables on VB.. ??

thanks
 
you need to create a module in your current project and define each variable using the public keyword (if you want that variable accessed in all forms). if any others can suggest a better way, go for it. im always willing to learn
 
Hmm, lemme see if i can remember this.
To declare a global variable, declare it in the general section.
You dont need to give it public status, since public and global are different.
Public makes it accesible to a few controls.
Global makes it accesible to the whole application.
So just diclare normally, but in general.
:)
 
Status
Not open for further replies.
Back
Top Bottom