Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Object in a LOCATE giving THISFORM error
Message
From
20/08/2008 19:28:27
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:
01340633
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
No. I said we cannot do that. That code is not accessible for change right now. Period. I understand what you're saying, but let it go. You really have a hard time when someone says no. I'm not sure if it's a matter of you not listening or just that you can't accept what they say. You don't need all the details, but once someone says they are unable to do something a certain way, try to answer what they asked, not what you think they need.

I have worked around it using the AGAIN clause and a different alias name.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform