Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
OO Design Question and recursion question?
Message
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
00266441
Message ID:
00266445
Views:
21
Derek,

I suggest you take a different look at what the objects are. Perhaps a BillOfMaterials object would be a better thought.

Such an object could have a property for the itemid of the finished good you want the BOM for, and it could have a method that is recursive to find all the components of that good. So, when you want the BOM for a Widget (ItemID 123) you just;

oBOM.ItemID = 123
oBOM.Explode()

and the object will produce the BOM for you. You could store the BOM in a cursor or table or anything else. Then use that for printing or viewing.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform