Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
RECNO() returns 1 for no records
Message
From
03/05/2004 09:12:09
 
 
To
03/05/2004 08:59:38
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00900340
Message ID:
00900348
Views:
8
>>Hi All. Can anyone explain the logic that RECNO() should return a value of 1 when a file has no records? VFP8/SP1. Its in the docs but why? Surely RECNO() should return 0 if there are no records?
>
>
>hi Jos,
>
>When the recno() is one more than the number of records you have an eof() condition.
>
>
>use Table && with records
>go bottom
>skip   && now recno() = reccount + 1 and eof()
>
>
>
>create cursor ppp(ppp I)
>
>?recno(), reccount(), eof()
>
I understand how it works but I think its logically incorrect. Later.
In the End, we will remember not the words of our enemies, but the silence of our friends - Martin Luther King, Jr.
Previous
Reply
Map
View

Click here to load this message in the networking platform