Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Object in a LOCATE giving THISFORM error
Message
 
 
À
20/08/2008 18:26:03
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01340560
Message ID:
01340618
Vues:
9
>>>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform