Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
RECNO() returns 1 for no records
Message
From
03/05/2004 11:07:49
 
 
To
03/05/2004 09:01:33
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00900340
Message ID:
00900403
Views:
17

... But even so, it doesnt make any sense to me. ...


A VFP logic sense exist for this rule:
- EOF() condition is equal to the (RECNO()>RECCOUNT()) condition
- when you are into a EOF() condition, the record is a hidden record
* next code run without errors
CREATE CURSOR AAA ( BBB I )
REPLACE BBB WITH 100
? BBB,RECNO(),EOF()
But:
BOF() condition it have not a correlation with RECNO() ( a RECNO() = 0 is a candidate )
CREATE CURSOR AAA ( BBB I )
APPEND BLANK
SKIP -1
? BOF()
REPLACE BBB WITH 100 && this reset the BOF() without move the recno pointer
? BBB,RECNO(),BOF()
but a VFP Logic sense exist for BOF(),
EOF() is a stable condition
BOF() is a metastable condition
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform