--- Bruce wrote:
> Since a static variable is only accessible inside of its script
> file, this would not work unless I added some new functions to go
> "outside the language", eg
> getstatictvar("scriptname", "staticvarname")
> setstaticvar("scriptname", "staticvarname")
> I don't plan to do this for now.
Personally, I believe that you should not waste your time.
If a script writer wants to access the static variable of another
script then s/he should program a subroutine that returns its value.
Example:
; --- Script1.PowerPro
MessageBox("Information", [EMAIL PROTECTED])
Quit
; --- Script2.PowerPro
Static CertainValue = 123
Quit
@GetCertainValue
Quit(CertainValue)
; ---
If one wanted to be able to set another script's static variables from
a different script then you could do this:
; --- Script1.PowerPro
[EMAIL PROTECTED](456)
MessageBox("Information", [EMAIL PROTECTED])
Quit
; --- Script2.PowerPro
Static CertainValue = 123
Quit
@GetCertainValue
Quit(CertainValue)
@SetCertainValue
Certain; --- Script1.PowerPro
MessageBox("Information", [EMAIL PROTECTED])
Quit
; --- Script2.PowerPro
Static CertainValue = 123
Quit
@GetCertainValue
Quit(CertainValue)
@SetCertainValue
CertainValue = Arg(1)
Quit
--
Alex Peters / Melbourne, Australia
PowerPro v3.8.21 / Windows XP
------------------------ Yahoo! Groups Sponsor --------------------~-->
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/JV_rlB/TM
--------------------------------------------------------------------~->
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/