Hello, Colleagues,
I am designing two related apps that are viewed as two different
scripts, but, they share common data elements (constants and arrays,
and even a couple of routines.) If I were doing this in a high level
programming language, I'd seriously consider making a class with the
two scripts instantiating objects of that class and letting the
properties, methods, and events go with each. The share information
would be available to each.
I could also use 'include' files or units. VBScript seems to have no
such facility for including simple data sets shared between scripts.
I had thought of simply combining the two scripts into the one .vbs
file, but that means complicating something that should be straightforward.
So, am I forced to define VBScript objects? How is that done? Is the
one file solution required? I doubt it, but I'm not yet experienced
enough to know the alternatives.
Thanks for the help!
David