kinook
06-19-2009, 12:39 PM
Use the Application object's Context property.
http://www.kinook.com/VisBuildPro/Manual/contextproperty.htm
For instance, within a VBScript Run Script (http://www.kinook.com/VisBuildPro/Manual/runscript.htm) step:If Application.Context = vbldContextGUI Then
Builder.LogMessage "Running in GUI"
ElseIf Application.Context = vbldContextCommandLine Then
Builder.LogMessage "Running in console"
Else
Builder.LogMessage "Running via object model"
End If
http://www.kinook.com/VisBuildPro/Manual/contextproperty.htm
For instance, within a VBScript Run Script (http://www.kinook.com/VisBuildPro/Manual/runscript.htm) step:If Application.Context = vbldContextGUI Then
Builder.LogMessage "Running in GUI"
ElseIf Application.Context = vbldContextCommandLine Then
Builder.LogMessage "Running in console"
Else
Builder.LogMessage "Running via object model"
End If