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)
-   -   Script to load Global Subroutines (https://www.kinook.com/Forum/showthread.php?t=2269)

kchernock 02-07-2007 11:46 AM

Script to load Global Subroutines
 
I am trying to create a script to load Global Subroutine Steps from a network file.

Dim Load
Set app = CreateObject("VisBuildSvr6.Application")
Load = app.Project.Steps(3).load("\\Server\VBP\VisBuildPro.steps",True)

The script runs without throwing an error, but the steps are not loaded.

Using Visual Build Pro - Version 6.2a on Windows 2003 Server

Reason for script...trying to create a server image starting with just the OS and VBP installed. Therefore, trying to prevent registry entries, shortcuts and starting VBP from a command-line. So, it will be helpful to open a .bld and have the first step load Global Subroutines.

kinook 02-07-2007 12:10 PM

Use the global Application object instead of creating another:

Code:

Application.Steps.Load "\\Server\VBP\VisBuildPro.steps", True

kchernock 02-07-2007 12:46 PM

Thanks for the quick reply, the steps (Global Subroutines) now load correctly.


All times are GMT -5. The time now is 04:34 PM.


Copyright © 1999-2023 Kinook Software, Inc.