Arrays and Custom Properties

Dave Cragg dcragg at lacscentre.co.uk
Thu Apr 18 02:45:01 EDT 2002


At 9:04 am +1000 18/4/02, Matt Denton wrote:
>Howdy.
>
>Does anyone know if you can set arrays for custom properties?
>
>I'm trying to do something like:
>
>on mouseUp
>   put 100 into myArray["this"]
>   put 200 into myArray["that"]
>   set the cMyArray of button "test" to myArray
>end mouseUp
>
>...but get an array error all the time.  I've got 200 objects in the array.

Try like this:

on mouseUp
   put 100 into myArray["this"]
   put 200 into myArray["that"]
   set the customProperties["cMyPropertySet"] of button "test" to myArray
end mouseUp

Cheers
Dave Cragg



More information about the use-livecode mailing list