Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Eof() or found()
Message
From
17/12/2004 20:53:38
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
17/12/2004 20:08:50
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows 2000 SP4
Network:
Windows 2000 Pro
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00970039
Message ID:
00970266
Views:
21
>>I would agree with most of the others here and say that FOUND() is the better choice. >SET NEAR ON can break the use of EOF() whereas FOUND() will always be accurate.
>
>Jim
>Do you mean to say that if "Set Near" is set ON and if you are trying to seek partial variable, "If not eof()" will be .T. but found() will be .F. ???
>Shafid

The whole idea of SET NEAR is that if an exact match is not found, the closest matching record will be selected. Therefore, EOF will NOT be true.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform