Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Object in a LOCATE giving THISFORM error
Message
 
 
À
20/08/2008 17:07:51
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:
01340576
Vues:
9
>>Hi Jay,
>>
>>>I'm getting an error that "THISFORM can only be used within a method" but oResponse is just an object created in a PRG. The PRG is called from a form.
>>>
>>>LOCATE FOR Covr.Pat_No = ALLTRIM(oResponse.SubID) AND Covr.CvPs = 'P'
>>>
>>
>>Do you have a filter defined for the cursor? LOCATE would attempt to evaluate the filter in addition to the FOR clause.
>
>I have a filter on another table, but not the Covr table. The debugger says that these are all valid values also.
select Covr
LOCATE FOR Pat_NO = ... and CvPs = 'P'
&& Remove Covr part

If we don't have filter on Covr, AFAIK, it should not give you the error.
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform