Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How do I load a grid ONLY with certain records to edit?
Message
De
23/03/2000 03:56:07
 
 
À
22/03/2000 18:24:33
Peter Brama
West Pointe Enterprises
Detroit, Michigan, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00349151
Message ID:
00349263
Vues:
24
Hi Peter.

>> OK, this makes sense - sort of.... I may be a bit nieve but... If I use the View tools to create the view, how do
I control what records go INTO the view. They can change constantly when the user picks a different event
or bar from the drop down lists. The view needs to be updated at runtime. <<

PMFJI, but in this case you need a parameterized view. To set the view paramter in the view designer, under the filter tab, select the correct field from the drop down list on the left and type in the name of the paramter in the box on the right like this:

?vp_value

You need the '?' immediately in front of the variable name with no spaces between the '?' and the variable name.

The, in your form, when you want to change the information displayed in the grid, you use code like this:

vp_value = < some value >
REQUERY( 'MyView' )

One thing to watch out for: make sure that you have either reverted or commited any pending changes in the view before you requery it or you will get a VFP error.

HTH.

Marcia
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform