Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Thisform can only be used within a method
Message
 
 
To
31/01/2000 19:32:36
Bob Smith
Custom Data Services, Inc.
Mansfield, Massachusetts, United States
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00325372
Message ID:
00325396
Views:
17
Hi Bob,
What is probably happening is the filter is being evaluated outside the scope of the form environment.

If you need the filter condition to be dynamic, you might try setting a variable to the spinner value and then setting the filter based on the variable:

lcvalue = THISFORM.Spinner1.Value
set filter to somefield = lcvalue

VFP will immediately evaluate lcvalue and the filter condition will look like somefield = 12 (for example). In the Valid event of the spinner, you can put code to reset the filter once the value has changed.

HTH,
Larry
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform