Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I call a child script's classes?

Status
Not open for further replies.

iamareplicant

Programmer
Aug 7, 2004
50
US
I am a VBA programmer new to VBscript.

What I would like to be able to do is create a child script that has several classes in them, then be able to call/instantiate those classes from other VBscripts.

All of my VBScript files will be run as Windows Scripting files (cscript) etc., and all files end in .VBS.

So, I need an example of how to call, from a parent script, a child script's classes.

Something like:

(Parent script)

Some sub()
Dim obj
set obj = new OtherscriptClass.Dosomething
end sub



I have searched online and Tek-Tips till I am more bald that I already was, and cannot find an example (nor can I find an example in several VBscript books).

Maybe this cant be done? Or, it is so simple that there are not examples?

Any help would be appreciated...

Thanks

Jeff
 
Thanks PH. That link is what I was looking for. Yes, it helps a great deal.

Now if I can just find a real world VBscript that instantiates classes from another VBscript...

Jeff

 
will do....as soon as I have one that wont embarass me (and works)
 
check out this thread that i helped out with recently

"Call to child script: Should parent wait for execution?"

the code posted is wrong but it should get you started if you read the thread
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top