Hi all,

   Thanks to all the suggestions from people I created this working solution
for my problem.

on showvar2 stdnum, 
  put (the globals).GetAProp(("gStandard" & stdnum &
"DataRef").symbol)[varnum]
end


   This seems to work just fine for grabbing the content of a global
variable with the name I send to it (other than the pre-defined string).

Thanks.
Peter Witham
Internet and Multimedia Solutions
http://www.evolutiondata.com
icq: 4436851
MSN: [EMAIL PROTECTED]

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Fumio Nonaka
Sent: Sunday, October 26, 2003 6:12 AM
To: [EMAIL PROTECTED]
Subject: Re: <lingo-l> Accessing global variables with sent parameters

I am a little late to come to this thread.  But try the below.

roymeo wrote:
> on testing this, that  --movieScript
     -- do "global gFoo" & this & "Bar"
     -- do "gFoo" & this & "Bar = " & that
     do "global gFoo" & this & "Bar"\
     & RETURN & "gFoo" & this & "Bar = " & that
> 
>    showglobals
> end
> 
> testing(1,2)
> results in:

> -- Global Variables --
> gFoo1Bar = 2
> version = "8.5.1"

Good luck,

Fumio Nonaka



[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email [EMAIL 
PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping 
with programming Lingo.  Thanks!]

Reply via email to