On Jul 11, 2006, at 3:38 AM, Kirt Cathey wrote:

Hi All.

I have a scenario where I am stuck on trying to search within arrays of objects.

<snip>

Here's the challenge, when a user clicks a button to add an entity, a
process, or an employee, we need to search the globalEntity for the
clicked node's parent entity. What is the alogrithm for this search?
Sample code would be a big bonus.

Thanks alot.
--
Kirt Cathey

It seems to me that you would be better off using a small amount of storage to do away with the need for searching altogether. If each instance had a pointer to its parent, which you presumably could initialize with the instance, then you could use the pointer without searching at all. If the parent is your "global entity", then you would know you are at the top of the tree...

Russ

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to