Accessing Classes

  • Thread starter Thread starter NachoShaw
  • Start date Start date
N

NachoShaw

Guest
Hey

probably a nuisance question:

i have moved all of my code to relevant classes to offload some of the processing when the form starts as im getting render issues. I realise now (thanks to some advice) that the form needs as little code as possible . Some things like members and tables have been moved to respective cMembers & cTables classes and i call them like this

in the form

Dim gMembers as New cMembers

now that i have instantiated gMembers as the New members collection, do i need to access this through the form Member gMembers or can i do something locally in another class that requires access like

dim Gm as cMembers

omitting the New(). Basically, Is this a way of hooking into a class instance that has already been instantiated or do i need to access it through the forms gMembers?

The class members are populated by another class to hold data while the application is running and various methods require the data being held


thanks




I am here to ask questions and learn from others. Cor Ligthert DO NOT REPLY TO ANY OF MY POSTS!!

Continue reading...
 
Back
Top