Link to home
Start Free TrialLog in
Avatar of Skale
Skale

asked on

How to seperate single project to multiple project in vb.net

Hello,

I have a tool like a picture below and it's getting bigger and bigger so it's hard to Debug it and work it. So i decide to seperate it to modules as on picture below but i don't know how is it possible because all modules are using same global variables and i don't how is it possible to link them.

User generated image
Any help would be grateful. Thank you.
Avatar of Peter Hutchison
Peter Hutchison
Flag of United Kingdom of Great Britain and Northern Ireland image

Normally variables are defined using the DIM statement, but these are not globally available, so you need to use the GLOBAL statement instead of DIM and then they will be available in the entire project.
e.g.
GLOBAL myNumber as Integer
GLOBAL myName as String
etc

Variables defined in Classes can be accessed via class_instance.variable_name as long as they a defined as Public or via a Method.
ASKER CERTIFIED SOLUTION
Avatar of Éric Moreau
Éric Moreau
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Skale
Skale

ASKER

Thanks Eric, it worked with your descriptions.