Looks like Kerry solved this one, but here's another (perhaps 
simpler) approach.

Instead of making gMechFailure a property list, just make it a linear 
list.  Seems like you are just storing 12 values in it, where each 
one represents a value for a single room.  If you did this, then you 
could just index directly into the list like this:

   if gMechFailure[currentUnit] = #foo then

Irv

At 4:31 PM +0000 11/20/01, Malcolm Beddows wrote:
>
>Hi all, I'm having some property syntax issues here:
>
>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. To achieve the result I want I
>need to concatenate the property name and variable something like this:
>
>if gMechFailure[ #roomunit & currentUnit ] = "foo" then
>   nothing
>end if
>
>(where 'currentUnit' is the variable I want to find)
>

-- 

Lingo / Director / Shockwave development for all occasions. 
          
   (Home-made Lingo cooked up fresh every day just for you.)

[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