Kinook Software Forum

Go Back   Kinook Software Forum > Visual Build Professional > [VBP] General Discussion
Register FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 07-26-2006, 03:02 PM
indika indika is online now
Registered User
 
Join Date: 05-29-2006
Posts: 9
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
Reply With Quote
  #2  
Old 07-26-2006, 03:14 PM
indika indika is online now
Registered User
 
Join Date: 05-29-2006
Posts: 9
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
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



All times are GMT -5. The time now is 02:59 PM.


Copyright © 1999-2023 Kinook Software, Inc.