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)
-   -   how do I programatically add code to script tab (https://www.kinook.com/Forum/showthread.php?t=1814)

indika 06-08-2006 02:44 PM

how do I programatically add code to script tab
 
How Do I add code to be displayed in the script tab and not in the script editor using the object model of VBP.

Currently I'm using IStep object to create a "run Script" type step and use the 'script' property to set the code, But when I look at the .bld file in vbp i see that the code that I added is in the script editors 'step' tab. How do I make that code show up in the 'script' tab of the 'step properties' dialog.

What is the difference in the code in script editors step tab and the script tab of the step properites dialog?

kinook 06-08-2006 08:38 PM

Step.Property("Script") = Step.Property("Script") & vbCrLf & "'more code"

would add code to the Script tab of a Run Script step.

The Script tab of the step properties dialog only exists for a Run Script step (its contents are stored in the step's Script property).
http://www.visualbuild.com/Manual/runscript.htm

The Step tab of the script editor dialog exists for any step and is used for editing a step's script event code (its contents are stored in the step's script property [note case difference]).
http://www.visualbuild.com/Manual/scriptevents.htm

indika 06-09-2006 08:00 AM

ok thanks
 
Thank you for the quick response.
your support rocks!


All times are GMT -5. The time now is 12:43 PM.


Copyright © 1999-2023 Kinook Software, Inc.