Kerry,

Thanks for your quick response, problem solved.

Kind Regards,

MangO.

-----Original Message-----
From: Kerry Thompson [mailto:[EMAIL PROTECTED]]
Sent: 20 November 2001 16:38
To: [EMAIL PROTECTED]
Subject: Re: <lingo-l> Small problem!!!



>
>What I have is a property list ('gMechFailure') with 12 properties
>('roomunit1' through to 'roomunit12'). I want to access these properties
>based on the value of a dynamic variable.
>
>if gMechFailure[ #roomunit & currentUnit ] = "foo" then
>   nothing
>end if

Hi Malcolm,

The problem is that Director converts the symbol to a string when you 
concatenate the currentUnit variable.

Try this:

if gMechFailure[symbol(#roomunit & currentUnit)]

Cordially,

Kerry Thompson


[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!]

[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