|
-
Mar 21st, 2006, 10:08 PM
#1
Thread Starter
New Member
A "Microsoft Script Control" Question, Please help
I use Script control to attach a function to aproject at runtime.
The first step is to add a Module by:
ScriptControl1.Modules.Add "Mod"
Then add a function to the module
ScriptControl1.Modules("Mod").AddCode "Function FName()......."
In the function I use some public variables defined in the project.
I run the function by:
ScriptControl1.Modules("Mod").Run(FName)
The function can be run successfully. The problem is the public variables are not recognied in the function. Anybody know this please advice how to solve this problem. Thanks a lot!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|