>  >set a = "abc"
>>set b = "xyz"
>>set abcxyz  = "hello"
>
>Gosh, please don't do do in your code.
>
>(the globals)[#gNewGlobal] = "clean way to create a global"
>--

Where's the fun in that!

Seriously though, if you don't know the name of the global (I know 
this is a stretch, but just for interest), can you do this?:

(the globals)[symbol("myvariables" & nextvar)] = "some stuff"

where nextvar might be an integer? Actually, I just tried it, and it 
does work. The above line would give you a new variable called 
myvariables1 (or whatever nextvar appends), and it does contain the 
text "some stuff".


[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/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