Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Object in a LOCATE giving THISFORM error
Message
 
 
To
20/08/2008 18:26:03
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP2
Miscellaneous
Thread ID:
01340560
Message ID:
01340618
Views:
8
>>>Ok, I did find an active filter on that table that used THISFORM. A coworker suggested, because we can't change the filter expression right now, that I use the table with the AGAIN clause. Does this seem reasonable?
>>
>>FILTER expression should never use THISFORM in it. You need to set your filter expression though macro, e.g.
>>
>>lcFilter = "myField = " + thisform.SomeProp
>>
>>set filter to &lcFilter
>
>As I said, we cannot change it now. It exists, now I need to work around it.

Ok, try the following
lcFilter = SET("Filter")

set filter to

locate for myCondition and &lcFilter

set FILTER TO &lcFilter
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform