Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Eof() vs. feof()
Message
From
27/04/2002 19:06:42
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00649845
Message ID:
00650081
Views:
22
>< snip >>>
>>>First of all, the difference is significant, because using EOF() unstead of FEOF() creates endless loop...
>>
>>Yes, of course. But shouldn't it produce an error message when trying to access after foef()?
>>
>
>As you know VFP LLFF don't generate errors but return codes indicating errors and set error code that can be return by FERROR() function. In this case FERROR() returns 31.

... or, in this case, as I am supposed to know. I suppose I usually just checked for feof(), or for negative return values, so I never investigated the error messages thoroughly.

Thanks for the clarification.

Hilmar.
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
Reply
Map
View

Click here to load this message in the networking platform