See screenshot which compares VFP output to X# output.
DBF and CDX attached for testing (in a zip file) Note, the CDX is not used in my code, but I sent it because it is present in the folder.
Here's the code:
Code: Select all
Function TestUseWithScan()
Local lnX As Int
Set Default To "C:WorkLM5AppData"
Field cParent, cFilename
Set Exclusive Off
If !USED("WA1")
Select 0
Use "wwBusinessObjects" Alias "WA1"
Endif
Select WA1
Scan For Deleted() and !Empty(cFilename)
? cFilename
Endscan
End Function
Screenshot: