Global Variables

  • Thread starter Thread starter Guest
  • Start date Start date
if you make them a shared variable they will be accessable with out
instanciateing a class.. normally you must instanciate a class to access
variables in it.. best pratice now days is to use classes. if you dont want
to make it shared, then using a module will make a variable accessable
through out the application.
 
* "=?Utf-8?B?TWF0dA==?= said:
Is there a way to create global variables to be used across all forms?

Create a settings class and implement the singleton design pattern (see
Google search for more info on that).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top