× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



I can not post actual code but here is the pseudo code to put in an array all 
the component and sub component of an Item:

++++ initialisation part ++++
- Clear a dataqueue
- Clear the array that will hold the components ID (I suppose that the array is 
big enought for the worst case)
- Put the Item ID you want to search in the dataqueue

++++ Main logic ++++
- Do while the data queue is not empty
—-- Remove an element from the data queue
—-- Do a lookup in the array to see if the component is already there
—-- If the component is already there, ignore it
—-- If the component is not in the array, add it
—-- If the element just retreive has components,
—------- loop to put them in the data queue

++++ End logic ++++
- If you want, you can sort the array
- Do whaterver you want with the array that now has the ID of all components 
and sub component in them.

I hope that this is clear enough.

Denis Robitaille
Directeur services techniques
Cascades Inc
819 363 5187
fax 819 363 5177


>>> RReddy@medicalartspress.com 09/10/01 10:26am >>>

Could you please post the code. I would really appreciate that.

Thanks.





As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.