Re: Set Variable or CustomProperty Names with and expression

2015-08-28 Thread Bob Sneidar
I knew that once, forgot it, and am now reminded of it again. One of the many great reasons this list is the bomb. Bob S > On Aug 12, 2015, at 13:16 , Mike Bonner wrote: > > You can use a custompropertyset using array notation too. > > set the myproperty["uName"] of button 1 to "Fred is dea

Re: Set Variable or CustomProperty Names with and expression

2015-08-12 Thread dunbarx
u will get output. This may be purely academic... Craig -Original Message- From: Brahmanathaswami To: How to use LiveCode Sent: Wed, Aug 12, 2015 1:46 pm Subject: Re: Set Variable or CustomProperty Names with and expression Neither of these worked... I took the cue fro

Re: Set Variable or CustomProperty Names with and expression

2015-08-12 Thread Mike Bonner
You can use a custompropertyset using array notation too. set the myproperty["uName"] of button 1 to "Fred is dead" set the myproperty["uBirthday"] of button 1 to "Hatched not born" Then you can: put the myproperty["uName"] of button 1 and it'll say "fred is dead" In this way you don't have to s

Re: Set Variable or CustomProperty Names with and expression

2015-08-12 Thread Brahmanathaswami
Peter Haworth wrote: Instead of setting individual cprops, you could store the whole array as a cprop - "set the uQuoteSets of this stack to aQuoteSets". When you want to use them, "put the uQuoteSets of this stack into aQuoteSets" "duh" of course... "if you make and array, just use it" i wi

Re: Set Variable or CustomProperty Names with and expression

2015-08-12 Thread J. Landman Gay
On 8/12/2015 12:45 PM, Brahmanathaswami wrote: In the end I was unable to figure out how to pass a variable string as a name of a custom property. This is how the object inspector in the IDE does it: command revInspectorSetProperty pObject, pPropName, pValue lock messages set the pPropNa

Re: Set Variable or CustomProperty Names with and expression

2015-08-12 Thread Peter Haworth
Instead of setting individual cprops, you could store the whole array as a cprop - "set the uQuoteSets of this stack to aQuoteSets". When you want to use them, "put the uQuoteSets of this stack into aQuoteSets" By the way, I entered a QCC report about the ability to use expressions as custom prop

Re: Set Variable or CustomProperty Names with and expression

2015-08-12 Thread Brahmanathaswami
Neither of these worked... I took the cue from Mark and tried arrays this was incredibly simple... almost. In the end I was unable to figure out how to pass a variable string as a name of a custom property. My head was hurting, so instead of breaking it on further attempts to find the algorit

Re: Set Variable or CustomProperty Names with and expression

2015-08-12 Thread dunbarx
"set") if item 6 of x contains y then put x & cr & "|" after it end repeat Which way is a matter of style. Craig Newman -Original Message- From: Brahmanathaswami To: How to use LiveCode Sent: Wed, Aug 12, 2015 12:43 am Subject: Set Variable or

Re: Set Variable or CustomProperty Names with and expression

2015-08-11 Thread Mark Schonewille
Use arrays: put x into myArray["set"]["life"] Arrays may be a little slow, but creating variables on the fly will be slow too. If speed really is an issue, please post a sample of your source data and the desired output. -- Best regards, Mark Schonewille Economy-x-Talk Consulting and Sof

Set Variable or CustomProperty Names with and expression

2015-08-11 Thread Brahmanathaswami
I want to move data from one variable to several others by parsing one and passing them to another (s) In this scenario... the variable I want to pass them to needs to be named according to one of the search items like this: where I want variable based on category names like: lifeset godset