PDA

View Full Version : How to call a VBP subroutine from script code


kinook
05-01-2007, 11:39 AM
Calling a VBP subroutine (http://www.visualbuild.com/Manual/subroutinestepstab.htm) directly from script (http://www.visualbuild.com/Manual/scripteditor.htm) code is not supported. Some ways to accomplish this are:

1) Create temporary macro(s) (http://www.visualbuild.com/Manual/macrostab.htm) from script, and then use those temporary macros as needed in the following steps (or in a subroutine called from the next step).

2) Create an object in script code (for instance an XML document, ADO recordset, etc.) and iterate over it in the following steps.
http://www.kinook.com/Forum/showthread.php?threadid=231

3) Create or open and build another project from script code (see the Script.bld (http://www.visualbuild.com/Manual/scriptsample.htm) sample).