Recently I have difficulty in passing values in variables to
subsequent called scripts.
I have two simple scripts:
;################# LIBRARY.POWERPRO script begin
[EMAIL PROTECTED]
[EMAIL PROTECTED] ("Halt all scripts and TRY to show where halt occurs (???)")
quit
; initialize some local, script identification variables
@InitInternalScriptInfo
static _script_caller = _script_filename
static _script_filename = "." ++ scriptname
;messagebox ("ok", _script_caller ++ _script_filename) ;; assign works great
quit ;; return from subroutine
;################# LIBRARY.POWERPRO script end
and
;################# DEBUG.POWERPRO script begin
@Halt
messagebox ("ok", arg(1) ++ "/n/nHalt in: " ++ _script_filename ++
"/nCalled by: " ++ _script_caller, "HALT: " ++ _script_filename)
quit all
;################# DEBUG.POWERPRO script end
And now if I simply launch LIBRARY script and then LIBRARY's variables
aren't passed to DEBUG script (messagebox vars are empty).
This is normal behaviour or I doing some mistake elsewhere?
How pass values in variables to subsequent called scripts? ("global"
not work too).
(of course I might use some like
[EMAIL PROTECTED] (scriptname, "some error info here")
and use arg() in Halt subroutine in Debug script, but I try to achieve
simpler syntax in this case)
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/