custom props woes
ambassador at fourthworld.com
Fri Oct 18 18:42:39 CEST 2013
FWIW I'm not able to reproduce the issue in v6.1.2 with these scripts,
each in a different button on one card:
put "foo" into tA
put "bar" into tA
put "c"& the seconds into gName
set the gName of this cd to tA
put the gName of this cd into tA
put the keys of tA
When I run the second script the Message Box shows:
...which are the valid keys of the array.
What's shown working here is:
- Property access by concatenated variable name
- Preservation of the property value as an array
Looking for differences between my test and yours:
- How is "the seconds" stored in your scripts?
- How are you testing whether the array is empty?
LiveCode training and consulting: http://www.fourthworld.com
Webzine for LiveCode developers: http://www.LiveCodeJournal.com
Follow me on Twitter: http://twitter.com/FourthWorldSys
More information about the use-livecode