I guess Im just missing something.
1. I can use a text stream to pull in code from a text file that contains a procedure.
2. I can then use the script control .addcode and .run to run the code.
3. Is this all there is to it? I keep reading about adding objects but when I do <scriptcontrol>.addobject "Message Box", msgbox
I get an error that msgbox cannot be used without parameters.
All Im trying to do is make the msgbox object available to the script. What am I doing wrong?
1. I can use a text stream to pull in code from a text file that contains a procedure.
2. I can then use the script control .addcode and .run to run the code.
3. Is this all there is to it? I keep reading about adding objects but when I do <scriptcontrol>.addobject "Message Box", msgbox
I get an error that msgbox cannot be used without parameters.
All Im trying to do is make the msgbox object available to the script. What am I doing wrong?