G
Guest
Hello, everyone. I was hoping if someone could help me out with a problem
that I'm trying to solve? I have a project that I'm working on. As the
splashscreen launches for an application I check the directory for the
location of a file and I assign that directory path to a class member in my
main module; so, I have the following syntax cClass.mydirectory = (path of
file). However, when I Load a form I have to recreate the class object cClass
and the member mydirectory is now blank. I was under the impression that once
a class object is created it's stored in memory and the code should be able
to access that class member from memory. Am I wrong in assuming this? Can a
class be made global or referenced for access from all forms? Thanks.
that I'm trying to solve? I have a project that I'm working on. As the
splashscreen launches for an application I check the directory for the
location of a file and I assign that directory path to a class member in my
main module; so, I have the following syntax cClass.mydirectory = (path of
file). However, when I Load a form I have to recreate the class object cClass
and the member mydirectory is now blank. I was under the impression that once
a class object is created it's stored in memory and the code should be able
to access that class member from memory. Am I wrong in assuming this? Can a
class be made global or referenced for access from all forms? Thanks.