Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do I load a grid ONLY with certain records to edit?
Message
From
23/03/2000 03:56:07
 
 
To
22/03/2000 18:24:33
Peter Brama
West Pointe Enterprises
Detroit, Michigan, United States
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00349151
Message ID:
00349263
Views:
26
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform