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)
-   -   Global script, how is it created? (https://www.kinook.com/Forum/showthread.php?t=2748)

ambalboa 06-27-2007 10:42 AM

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?

kinook 06-27-2007 10:53 AM

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.


All times are GMT -5. The time now is 02:25 PM.


Copyright © 1999-2023 Kinook Software, Inc.