Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
RECNO() returns 1 for no records
Message
From
03/05/2004 08:59:38
 
 
To
03/05/2004 08:50:36
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00900340
Message ID:
00900343
Views:
13
>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()
Gregory
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform