>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'
>
Is this oResponse a public variable?
Can you assign a local variable
lnID = oResponse.SubID
before the locate and use this local variable in LOCATE? Are you sure this is the line generating an error? Do you have any filters defined?
If it's not broken, fix it until it is.
My Blog