Declaring public variable

pardeep3dec's Avatar, Join Date: Aug 2008
Newbie Member
Hi Friends,
Please tell me the process of declaring variable which can be used from any form of a project in vb 6.0
mbshinde78's Avatar, Join Date: Sep 2008
Newbie Member

It is easy.

Add a global module into your project from the file menu. Then declare a public variable with whatever data type you wish.

That variable will be accessible to you from anywhere within the project