Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Populating a listbox - design question
Message
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Title:
Populating a listbox - design question
Miscellaneous
Thread ID:
00267060
Message ID:
00267060
Views:
46
I've got a listbox on the last page of a pageframe. In the Activate() event of the frame I force my business obj. to run it's Total() method. The method builds an array that I'd like to use to populate my listbox. The "problem" (not really a problem, I can work around it, but I'd like to handle this cleanly) is that if I place code in my ListBox's Init() event to populate it using my business obj's array, it will fire before my code in Activate() has. Among other things happening in Activate() I have to switch to the new business object (I'm using the Mere Mortals Framework), set some propertys and then the Total(). So, that means I'll usually get an error since the business object that has the Total() method hasn't even become available yet.

I'm thinking I should just add a Populate() method to the listbox and call it after everything else in Activate(). How would you handle it?

Thanks,
-Paul

RCS Solutions, Inc.
Blog
Twitter
Next
Reply
Map
View

Click here to load this message in the networking platform