Custom Props Set

Nakia Brewer Nakia.Brewer at westrac.com.au
Tue Mar 4 18:24:44 EST 2014


Hi,

Long time between drinks I know.
Finally got back to this today and I couldn't get that solution to work for me.

Reading into the dictionary it looks like I had to set the customPropSet to be active first then use the customKeys function to get the keys.

set the customPropertySet of grp "EventsGroup" to "VIMSEventChannels"
put the customKeys of grp "EventsGroup" into tKeys




Nakia Brewer | Technology & Solutions Manager | Equipment Management Solutions
t: (02) 49645051 | m: 0458 713 547 | i: www.westrac.com.au


  ACN 009 342 572


-----Original Message-----
From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of J. Landman Gay
Sent: Friday, 7 February 2014 2:17 PM
To: How to use LiveCode
Subject: Re: Custom Props Set

On 2/6/14, 8:01 PM, Nakia Brewer wrote:
> Thanks Jac,
>
> Haven't got back to this today so this will help.

I just noticed I left out the "of this stack" inside the repeat loop, it should be:

  if the tCustomPropSet[tKey] of this stack = value then do something

Mushy brain.

>> I was trying to get the names of all the Custom Properties that 
>> existsin a Custom Property Set.
>> I want to loop through them all and see if one has a value I am  looking for.
>
>> Repeat for each line tCustomProp in tCustomPropSet If the 
>> tCustomPropSet[quote& tCustomProp &"]" = value then do something End 
>> repeat
>>
>> Kind of like above ish roughly
>
> You may have figured this out by now, but try this:
>
>    put the keys of the tCustomPropSet of this stack into tKeys
>    repeat for each line tKey in tKeys
>      if the tCustomPropSet[tKey] = value then do something
>    end repeat
>
> If the set isn't in the stack, sustitute wherever it is for "of this stack".
>
s

-- 
Jacqueline Landman Gay         |     jacque at hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com

_______________________________________________
use-livecode mailing list
use-livecode at lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


COPYRIGHT / DISCLAIMER: This message and/or including attached files may contain confidential proprietary or privileged information. If you are not the intended recipient, you are strictly prohibited from using, reproducing, disclosing or distributing the information contained in this email without authorisation from WesTrac. If you have received this message in error please contact WesTrac on +61 8 9377 9444. We do not accept liability in connection with computer virus, data corruption, delay, interruption, unauthorised access or unauthorised amendment. We reserve the right to monitor all e-mail communications.






More information about the use-livecode mailing list