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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MSScript Control

Status
Not open for further replies.

DarkMercenary44

Technical User
May 19, 2000
55
US
I want to know how I let the Script Control know that a Module Exists. I've added the other objects to it but how can I tell it that the sub it's looking for is in the Module DarkMercenary
darkmercenary44@earthlink.net

In the real world
As in dreams
Nothing is quite
What it seems
:Book of Counted Sorrows
 
I add the module name then add the code which I have assembled in a string.

m_objScript.Modules.Add(strModuleName)

m_objScript.Modules(strModuleName).AddCode strScript Forms/Controls Resizing/Tabbing Control
Compare Code (Text)
Generate Sort Class in VB or VBScript
 
That don't work, Iv'e tried it, I mean an actual module, I have a md_Main_Declarations.bas that I need to have the script access, and your code above isn't what I mean, I appreciate the effor though :) DarkMercenary
darkmercenary44@earthlink.net

In the real world
As in dreams
Nothing is quite
What it seems
:Book of Counted Sorrows
 
There are nothing but "actual" modules in a VBScript using the MSCript control. I know mine works because it runs in production. If you mean "global" variables, I have never had to use them but I suppose, possibly incorrectly, that a Public declaration would make them availabale to all other modules. Forms/Controls Resizing/Tabbing Control
Compare Code (Text)
Generate Sort Class in VB or VBScript
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top