Hey All, I've got a Conceptual delema that hopefully someone will have some
insight on.
I made a GUI for 1000 fields which are stored in an array of strings to
programatically retrive them and save them to a file. But I also have 1000
uniquely named vars (numbers and strings) that I have to assign from the
String Array. Right now I have one module that declares them all then does
1000 of the following
mycustomname = stringarray(1) 'String var
anothercustomna me = val(stringarray (2)) 'Integer var
etc..
My question is concerning the location of this kind of code and how it
affect memory.
->If I move the 1000 asignments to a form that is loaded and unloaded when
needed is that going to make any difference in the memory usage as oposed to
just letting it sit in the module?
I feel that I'm wasting memory because I have more code that generates
statistics but it is sitting in modules that are called once upon request of
the user.
->If I put these modules into a DLL won't they still be in memory until my
app closes?
-> Also, I havn't gotten a big response to creating a DLL in VB, Should I
use not even bother with a vb dll and learn VC++ if I need one?
Thanks in Advance,
-Philip
insight on.
I made a GUI for 1000 fields which are stored in an array of strings to
programatically retrive them and save them to a file. But I also have 1000
uniquely named vars (numbers and strings) that I have to assign from the
String Array. Right now I have one module that declares them all then does
1000 of the following
mycustomname = stringarray(1) 'String var
anothercustomna me = val(stringarray (2)) 'Integer var
etc..
My question is concerning the location of this kind of code and how it
affect memory.
->If I move the 1000 asignments to a form that is loaded and unloaded when
needed is that going to make any difference in the memory usage as oposed to
just letting it sit in the module?
I feel that I'm wasting memory because I have more code that generates
statistics but it is sitting in modules that are called once upon request of
the user.
->If I put these modules into a DLL won't they still be in memory until my
app closes?
-> Also, I havn't gotten a big response to creating a DLL in VB, Should I
use not even bother with a vb dll and learn VC++ if I need one?
Thanks in Advance,
-Philip
Comment