Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problems Refreshing my form
Message
De
19/04/2000 03:33:13
 
 
À
18/04/2000 16:05:15
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00360976
Message ID:
00361172
Vues:
22
Hi Kelly.

>> If I set the control sources of each text box to the fields in the view then when i open the form it automaticly runs the view before i am
able to load the public variable with my date range that the view needs run the filter which has to be typed into one of
the textboxes in the same form. <<

Just set the View's NoDataOnLoad property to .T. in the DataEnvironment. Also, you do not need a public variable to requery the view. The variable just has to be in scrope when you requery. So, if you have a text box for entering the view parameters and a commandButton that refreshes the view, you can just call a form method called GetNewData or something like that from the commandButton's click (or from the text box's Valid() for that matter) and put code in the method something like this:

vp_Date = Thisform.txtDateParamter.Value
REQUERY( 'lv_whatever' )
Thisform.Refresh()

Marcia
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform