Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Where to Requery after List is closed
Message
 
 
À
28/11/2002 09:14:42
Information générale
Forum:
Visual FoxPro
Catégorie:
CodeMine
Divers
Thread ID:
00727921
Message ID:
00727947
Vues:
11
Gary,

>So, the easiest way to do this is to subclass the form's list method so that you call dodefault() and then immediately do your requery after control returns from your custom list dialog, via the list method.<

Do you mean something like the following in the frmDataForm List() method?:
FUNCTION frmdataform.list
LPARAMETERS cWorkarea

DODEFAULT()
THISFORM.MyRequery()
The above actually does open my custom subclassed list, but then it proceeds and does the THISFORM.MyRequery() before the list browse window is closed - so it doesn't actually do what I need it to.

After thinking about your suggestion, I did put the THISFORM.MyRequery() in the Form Activate() method, and that did the job. You think that would be a problem calling THISFORM.MyQuery there, or do you have another suggestion?

Thanks for your help.

Mel Cummings
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform