I'm sorry, but your question is not clear enough for anyone to answer.
Where does the string that you have come from? Where does the
"dfddf" come from? What does the code you are showing here have to
do with lingo.ini? Is this code supposed to live in a behavior
attached to many different sprites?
If this is a behavior that is attached to many different sprites,
then each copy of the behavior (known as an "instance" of the
behavior) will have a copy of any property variables defined in that
behavior. For example, if I create a behavior like this:
property spriteNum
property myVariable
on beginSprite me
myVariable = spriteNum -- same as 'the spriteNum of me'
end
on mouseUp me
put myVariable
end
and attach this behavior to sprites in channels 1, 2, and 3. Then,
there are three copies ("instances") of this behavior and each has
its own copy of the variable 'myVariable'. When I click on each
sprite, each will report its sprite number (1, 2, or 3) to the
message window.
If that's not what you want to do, then please clarify your question.
(However, I'm guessing that the thing you really want is a "list")
Irv
At 8:24 AM +1000 6/17/05, Jojie, Leah, Kiahra & Kahyla wrote:
Hi list.
It's been a while since I've touched programming. I have string that
I would like to convert as a variable-name so that I can use that to
call a variable with different values on them.
basically this is what it's supposed to do roughly
on beginspite
myVariable = "myVariable" & the spriteNum of me
end
on mouseUP
put myVariable
end
lingo.ini
-- then you have this here
myVariable1 = "dfddf"
myVariable2 = "etc"
myVariable3 = "etc etc"
thanks for the help
Elvin.
[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!]
--
Multimedia Wrangler.
[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!]