Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Execute Default Behaviour
Message
 
À
01/04/1998 03:28:45
Steve Camsell
Windmill Associates
Bath, Royaume Uni
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00088334
Message ID:
00088680
Vues:
28
>
>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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform