LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
kpeters
- Posts: 112
- Joined: Wed Mar 21, 2007 9:32 pm
Post
by kpeters » Sat Jul 14, 2007 9:00 pm
I believe that custom properties are implemented as arrays.
Then why is tmp empty?
Code: Select all
put the WorkCodes of button "WorkCodes" into tmp
combine tmp using comma
answer tmp
Needless to say, there are tons of WorkCodes...
TIA,
Kai
-
Mark
- Livecode Opensource Backer

- Posts: 5150
- Joined: Thu Feb 23, 2006 9:24 pm
-
Contact:
Post
by Mark » Sat Jul 14, 2007 10:19 pm
Dear Kai,
Is comma the correct main delimiter? Aren't there returns in the data? Maybe you want
combine tmp by return and comma
Is the workcodes a custom property with data in it or is it a custom properties set?
Best,
Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
-
kpeters
- Posts: 112
- Joined: Wed Mar 21, 2007 9:32 pm
Post
by kpeters » Sat Jul 14, 2007 10:58 pm
Mark ~
WorkCodes is a custom properties set.
In there, keys are strings like "Group Activity" and values are short codes matching the keys - in the case here, "GA"
Kai
-
Mark
- Livecode Opensource Backer

- Posts: 5150
- Joined: Thu Feb 23, 2006 9:24 pm
-
Contact:
Post
by Mark » Sat Jul 14, 2007 11:13 pm
OK Kai, then it is a two-dimensional array, which means that you need two delimiters.
combine tmp by return and comma
or
combine tmp by return and tab
Best,
Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
-
kpeters
- Posts: 112
- Joined: Wed Mar 21, 2007 9:32 pm
Post
by kpeters » Sat Jul 14, 2007 11:35 pm
Mark ~
doesn't work that way either.
Besides, shouldn't you be able to flatten a two-dimensional array either way (notwithstanding that the results may not be what you desire) - but it should never return empty.....
Kai
-
Mark
- Livecode Opensource Backer

- Posts: 5150
- Joined: Thu Feb 23, 2006 9:24 pm
-
Contact:
Post
by Mark » Sat Jul 14, 2007 11:54 pm
wait a sec, Kai.... I asked whether it is a custom properties set for a reason. Please, check out the information about the customProperties property in the docs.
Best,
Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
-
Mark Smith
- Posts: 179
- Joined: Sat Apr 08, 2006 11:08 pm
-
Contact:
Post
by Mark Smith » Sun Jul 15, 2007 1:04 am
When referring to a custom property set, you have to use this form:
put the customProperties["WorkCodes"] of btn "WorkCodes" into tmp
The form you've used looks for an element of the current set with the key "WorkCodes", and since there isn't such an element, it returns empty.
Best,
Mark
-
kpeters
- Posts: 112
- Joined: Wed Mar 21, 2007 9:32 pm
Post
by kpeters » Sun Jul 15, 2007 2:04 am
Thanks, Mark ~
was used to doing work after issueing a
Code: Select all
set the customPropertySet of button "WorkCodes" to "WorkCodes"
- that did cloud my brain!
Kai