custom prop

Dave Cragg dcragg at lacscentre.co.uk
Mon May 6 07:42:00 EDT 2002


At 7:34 am -0400 6/5/02, Ivers, Doug E wrote:
>I don't really understand this yet, but apparently there is a unique 
>relationship between custom properties and arrays.
>
>It seems that I can't, then, store an array in a custom property.
>Here's what I tried, but it causes a runtime error:
>
>on mouseUp
>   put "A" into myArray[1]
>   put "B" into myArray[2]
>   set the testAry of this card to myArray
>   answer "myArray has been created."
>end mouseUp
>
>I'm not trying to switch between different property sets.  I just 
>want to store in a custom property an array like any other variable. 
>Is this possible?

Try this:

on mouseUp
   put "A" into myArray[1]
   put "B" into myArray[2]
   set the customProperties["testAry"] of this card to myArray
   answer "myArray has been created."
end mouseUp

Cheers
Dave Cragg



More information about the use-livecode mailing list