Hi Gonzalo, > -- 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??
if property is not defined, you'll get a script error. you'd rather change if voidP(this.property) then by if voidP(this[#property]) then using a bracket access is like a getaProp call, when a dot access to a property is like a getProp call. hth, .seb [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!]
