Kinook Software Forum

Go Back   Kinook Software Forum > Visual Build Professional > [VBP] General Discussion
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 06-27-2007, 10:42 AM
ambalboa ambalboa is online now
Registered User
 
Join Date: 06-25-2007
Location: Houston, TX
Posts: 70
Global script, how is it created?

I would like to write a global script that would get a version number, increment it, and then sent that value back to set it to a project. I can do this using the Run Script action as a project step, but I think it would be best if I can set version numbers to different items by passing the version number value back and forth to the global script which would increment it by one.

How can I do this? Do I copy and paste my project script into the global script tab on Script Editor?
Reply With Quote
  #2  
Old 06-27-2007, 10:53 AM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
Incrementing a version number in a macro only takes a few lines of code (see the Script.bld sample), so there may not be much point in putting it into global script code.

Global script code can modify global, project, and temporary macros directly, and you could also pass in the name of the macro to a global script function when calling it. Yes, global script functions are edited on the Global tab of the Script Editor.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



All times are GMT -5. The time now is 10:42 PM.


Copyright © 1999-2023 Kinook Software, Inc.