The GW-Scripting list is a discussion list for information regarding the development and use of Window-Eyes scripts. Any subscriber of the GW-Scripting list has the ability to post on-topic messages.

From:

 David

Subject:

 Is this possible

Date:

 Wed, Feb 3, 2010 4:50:48 pm
Every now and then, when creating a VBscript, I 'construct' a sub or function, that would have proven useful inside more than one of my scripts. Is there any way, to build some kind of a library of such self-made sub/functions, and 'install' the library, and thereafter make use of it in other scripts? In c++, you have the #Include feature.

For example, say I have the MyFunc, MySub and MyOldFunc that I want to use in ten different scripting project. Could I have made these into some kind of an object, that I easily could 'call' in later scripts - something like
MyLib.MySub
etc?

In case this is possible, How would I create the Library, and which instruction would I use in future scripts, so as to cal, or include, the library/object?

Thanks for your kind assistance!



--
I am using the free version of SPAMfighter.
We are a community of 6 million users fighting spam.
SPAMfighter has removed 611 of my spam emails to date.
Get the free SPAMfighter here: http://www.spamfighter.com/len

The Professional version does not have this message