Kinook Software Forum

Kinook Software Forum (https://www.kinook.com/Forum/index.php)
-   [VBP] General Discussion (https://www.kinook.com/Forum/forumdisplay.php?f=2)
-   -   How to create a global object (https://www.kinook.com/Forum/showthread.php?t=1953)

indika 07-26-2006 03:02 PM

How to create a global object
 
I want to create a COM object when the build starts(in build starting event), that all steps can use. Much like Application or Project.

How do I do this, or can I do this?

Thanks

Indika

indika 07-26-2006 03:14 PM

I found it

Create and store the object like this:

Set Runner = CreateObject("IDEAScriptRunner.RunScript")
' store in a temporary macro
vbld_TempMacros().Add "Runner", Runner


Get it and use it like this:

Set Runner = vbld_TempMacroObj("Runner")
Runner.PutTestStep(Step)
Runner.PutVBPApplication(Application)
'Runner.RunScript


All times are GMT -5. The time now is 07:51 AM.


Copyright © 1999-2023 Kinook Software, Inc.