Hi there I'm working on a project where I import a List of property lists from the web. I've managed convert the text to a list a (Thanks to Jim) I'm then writing a behaviour for my sprites to read the property list that corresponds with them and take the values. Sometimes the values don't exist on the list. I'm trying to check first if the list is a propList (it gives me an error sometimes List expected) and then if the values exist (not very successfully)
Global gRaw --container of my text converted to lists on init me -- handler to initialise all properties of the sprites i = me.spritenum -19 -- we start wit channel number 20 -- check that i doesn't go beyond the scope of graw if gRaw.count >= i then -- place the property lists contained in graw into the temp variable this this = graw[i] -- check if this is a PropList if not get next item of gRaw (don't think is working) if ilk(this) <> #proplist then this = this + 1 end if -- here is where I'm triying to check if #property exists or not and if not give it a fixed value Gives me an error Property not found #property if voidP(this.property) then setaProp (this, #property, 1) else pSpeed = integer(this.property) end if what am I doing wrong?? Thank you. Gonzalo. [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!]