custom prop

Ivers, Doug E Doug_Ivers at lord.com
Mon May 6 06:39:01 EDT 2002


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?



On 1/29/02 3:56 PM, "Kevin Miller" <kevin at runrev.com> wrote:

> On 29/1/02 3:46 pm, Devin Asay <devin_asay at byu.edu> wrote:
> 
>> This is great stuff, the first time I've understood what custom
>> property sets are for.  But how do you make one set or the other
>> active?
> 
> put the myArrayName["myKeyName"] of btn 1
> 
> Or:
> 
> put the customProperties[myArrayName] of btn 1 into tMyArray
> 
> Or:
> 
> set the customPropertySet of btn 1 to "myArrayName"
> 
> -- further references will refer to properties in a particular set:
> 
> put the myKeyName of btn 1 --from set myArrayName
> 
> Kind regards,
> 
> Kevin
> 
> Kevin Miller <kevin at runrev.com> <http://www.runrev.com/>
> Runtime Revolution Limited - Power to the Developer!
> Tel: +44 (0) 870 747 1165.  Fax: +44 (0)1639 830 707.
> 
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution
> 



More information about the use-livecode mailing list