View Single Post
  #2  
Old 09-12-2006, 06:41 AM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,033
The VBP automation objects wrap the underlying object model and not the GUI. The only way to get a GUI automatically is to explicitly launch the GUI app via the command-line:
http://www.visualbuild.com/Manual/command_linegui.htm

You could use the Builder.RunProgramEx method to do that from script:
http://www.visualbuild.com/Manual/ru...amexmethod.htm

Code:
If Application.Context = vbldContextGUI Then
  exe = %VISBUILD%
Else
  exe = %VISBUILDCMD%
End If

Step.BuildStatus = Builder.RunProgramEx(exe & " /b ""%VISBUILDDIR%\Samples\RegEdit.bld""")
Reply With Quote