Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Handling ComboBoxes
Message
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Miscellaneous
Thread ID:
00240227
Message ID:
00241537
Views:
14
>Rex,
>
>>What is the preferred way of handling a lookup type combo box? My choices are to create business objects for each and create a one to many relationship or to add the cursor to the data environment and requery comboboxes in the PostRequeryHook of the primary bizobj.
>>
>>I know there is no "right" way, but what way do you use and why?
>
>If you add a cursor to a business object's DE, it goes wherever the business objects goes. If the business object truly needs this "lookup" cursor wherever it goes, this is a good thing. If it only needs the lookup cursor in the context of a particular form, then it's extra baggage and you should consider using a separate business object to load the cursor for the combobox.
>
>Regards,

Rex,

I just want to add that you may not need a true business object. If the cursor is used for lookup purposes only, you can use the cDELogical utility, located in cUtils.vcx, which requires a lot less overhead.
Previous
Reply
Map
View

Click here to load this message in the networking platform