On Feb 2, 2006, at 10:40 AM, Joseph J. Strout wrote:

Has anyone come up with a method to do recursions, when the number of recursive levels is not known in the first place?

Well, sure -- most recursive algorithms are that way. What specific problem did you have in mind?

By way of example.

Say I have an SQLSelect cursor pointing to a selection of records from a table. The data has been sorted.

THIS selection has two fields in it. I want to build a contextual menu on the fly. The first field is the primary menu item. Any data in the second field is to be used to make a submenu of the primary menu item.

However, the next time I call this method, the cursor may have three fields. Any information in the third field would be a submenu of the items in the second field.

The time after that, there could be five fields in the cursor. Any information in the fourth and fifth fields would be submenu items of the level above that field.

Do you savvy?

Regards,

Chuck
_______________________________________________
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