How to make data module

  • Thread starter Thread starter Thammarat charoenchai.
  • Start date Start date
T

Thammarat charoenchai.

Are visual basic have something like Data Module in Delphi?

that i can drop component to data module and can call to use that
component any where in project

Thanks you very much.
 
I am not sure about Data Module in Delphi since i havent worked in delphi.
But it sounds like you are trying to declare a variable and access it
anywhere in the project. One way to do that is to add a module to your
project and declare it in the module.

If you have a class and are trying to use an instance of that class anywhere
in the project then an alternative way is to declare a public shared member
of the class in the class file itself and initialize it.

E.g.
Class A
Public Shared InstanceA as A = New A()

End class

hope this helps
Parag
 
Back
Top