custom props woes

Klaus major-k klaus at major-k.de
Fri Oct 18 12:18:28 EDT 2013


Hi friends,

Am 18.10.2013 um 14:45 schrieb Klaus major-k <klaus at major-k.de>:

> Hi friends,
>> ...
>> I store arrays in a custom property of a group, the key for them is ("c" & the seconds)
>> Works fine so far, but when I try to retrieve the data with a concatenated name of the
>> custom property, it does NOT work.
>> ...
>> put ("c" & the Seconds) into tCPName
>> set the tCPName of me to tArray
>> ## Works fine, cp contains the array!
>> ...
>> The name is correct and it works when I use the name directly, but not this way:
>> ...
>> ## the seconds have of course been stored when saving to CP
>> put ("c" & tSeconds) into tCPName
>> ## -> correct name of custom property
>> put the tCPName of me into tArray
>> ##-> tArray = EMTPY!
>> 
>> put the c123456 of me into tArray
>> ## -> tArray is an ARRAY
>> ...
> 
> When I change the content of the cp from an array to the string "a string"
> ...
> put ("c" & tSeconds) into tCPName
> ## -> correct name of custom property
> put the tCPName of me into tArray
> ...
> THEN: tArray = a string
> ??????
> 
> Is this a bug?
> OS X 10.8.5, LC 6.1.2 (stable)

as a workaround I arrayencode/base64encode/urlencode the array before putting
it into the cp (as a STRING now!) and this seems to work so far...

Too funky 8-)


Best

Klaus

--
Klaus Major
http://www.major-k.de
klaus at major-k.de





More information about the use-livecode mailing list