Have you ever tried this? It's what I always do when dealing with a custom prop set:

to deal with the keys:
    put the customKeys["uMyCustomProps"] of this stack into tKeyList
set the customKeys["uMyCustomProps"] of this stack to tKeyList -- handy for deleting or adding elements

or to handle the set:
put the customProperties["uMyCustomProps"] of this stack into tPropsArray
    set the customProperties["uMyCustomProps"] of this stack to tPropsArray

... where 'uMyCustomProps' is the name of the CPS.  Works for me.

Phil


On 3/4/14, 3:24 PM, Nakia Brewer wrote:
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-boun...@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


--
Phil Davis


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

Reply via email to