--- In [email protected], tempUser <[EMAIL PROTECTED]> wrote:
>...
> I have two simple scripts:
>
> ;################# LIBRARY.POWERPRO script begin
>...
> ;################# DEBUG.POWERPRO script begin
First, an explanation of:
Global, Static, & Local variables
Global variable: - every script know and able to access\modify.
This kind of variable lives as long as powerpro is running.
Static variable - only one script knows about this variable, but it
still lives until you shutdown powerpro. It is kind of "global for
one script". This script can change it, quit and next time this
script start and have this variable the same state it was before
quitting script. Difference from global , that any other script
cannot access\change\screw this variable.
I.e. you can count how many time script ran from the starting of
powerpro AND you can use the same variable name in different scripts.
Local variable - only one script knows this variable and even this
script forgets about this variable as soon as quits.
Purpose - convenience of usage the same names for similar variables
like counter, returnCode and not screw any global variable with the
same name that may be other script rely on :)
and also doesn't use memory permanently for this kind of variable.
Try:
;################# LIBRARY.POWERPRO script begin
[EMAIL PROTECTED]
[EMAIL PROTECTED] ("Halt all scripts and TRY to show where"++ ;;+
" halt occurs (???)", _script_filename, _script_caller)
quit
; initialize some local, script identification variables
@InitInternalScriptInfo
static _script_caller = _script_filename
static _script_filename = "." ++ scriptname
; Don't know why above is in the order it is, but is same as yours...
;messagebox ("ok", _script_caller ++ _script_filename)
quit
;################# LIBRARY.POWERPRO script end
and
;################# DEBUG.POWERPRO script begin
@Halt
messagebox ("ok", ESC(arg(1) ++ "/n/nHalt in: " ++ arg(2) ++ ;;+
"/nCalled by: " ++ arg(3), ?"/"), "HALT: " ++ arg(2))
quit all
;################# DEBUG.POWERPRO script end
Ted
Attention: PowerPro's Web site has moved: http://www.ppro.org
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/power-pro/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/