identifying an object via a custom property
Mark Schonewille
m.schonewille at economy-x-talk.com
Wed Feb 14 19:23:53 EST 2007
Hershel,
I mean the following. Set the order of an object first.
on setProp cGroupOrder theNumber
set the cGroupOrderList[theNumber] of this stack to ¬
the cGroupOrderList[theNumber] of this stack & comma & the id of
the target
pass cGroupOrder
Then use the stored list of objects to do something with all objects
that have their order set to a particular number.
on doSomethingWithSomeOrder theNumber
repeat for each item myObjectID in the cGroupOrderList[theNumber]
of this stack
show control id myObjectID -- or whatever you want to do with
the object
end repeat
end doSomethingWithSomeOrder
(Untested, please mind line wraps and typos)
Best regards,
Mark
--
Economy-x-Talk
Consultancy and Software Engineering
http://economy-x-talk.com
http://www.salery.biz
Get your store on-line within minutes with Salery Web Store software.
Download at http://www.salery.biz
Op 14-feb-2007, om 2:14 heeft Hershel Fisch het volgende geschreven:
> On 2/13/07 6:40 PM, "Mark Schonewille" <m.schonewille at economy-x-
> talk.com>
> wrote:
>
>> Hi Hershel,
>>
>> Make a setprop handler that stores a flag in a custom property of
>> your stack or in a global variable. When you want to know which
>> objects have ther property set, just use the second custom property
>> or the global variable to read out the information.
> Sorry didn't get it.
> Thanks, Hershel
>>
>> Best,
>>
>> Mark
>>
>> --
>>
>> Economy-x-Talk
>> Consultancy and Software Engineering
>> http://economy-x-talk.com
>> http://www.salery.biz
>>
>> Get your store on-line within minutes with Salery Web Store software.
>> Download at http://www.salery.biz
>>
>> Op 14-feb-2007, om 0:11 heeft Hershel Fisch het volgende geschreven:
>>
>>> Hi is there a way to identify an object via a custom property?
>>> E.g. focus on fld the groupOrder = 3
>>> Or focus on groupOrder "3"
>>>
>>> Thanks, Hershel
More information about the use-livecode
mailing list