Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Execute Default Behaviour
Message
 
To
01/04/1998 03:28:45
Steve Camsell
Windmill Associates
Bath, United Kingdom
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00088334
Message ID:
00088680
Views:
32
>
>The problem comes when the user saves changes to an address. This could include a change to the address description, which is what the listbox displays, therefore the listbox has to be Requeried. If the UI object to be generic and independant, it cannot know about the existance of the list box on the form. I therefore just call a THISFORM.Refresh(). In the Refresh() of the form, I update the list box by doing a Requery() etc.

It depends of course why this independance is needed, but I guess independence does not exclude exchange of messages. Practically your UI object could have a property that knows the state of the listbox (considered here as an associated, friend object). In this way you can have this control order the requery when needed, based on an event that would have to come from the form.

Marc

If things have the tendency to go your way, do not worry. It won't last. Jules Renard.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform