Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Phantom Record
Message
From
28/12/2001 11:04:06
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
28/12/2001 10:11:36
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00598707
Message ID:
00598820
Views:
24
>what if there are not any records in teh file. that's my point. if i run it w/o any records, somehow it's reading that one phantom record.

And so it should - that's what the phantom record is for, so that you always have something in the fields. And you guessed it right, it was always called phantom record. It's record number is one greater than recc() (unless you have buffered records with negative recno()s); sometimes it's handy to check between(recno(), 1, recc()) to see if you're on a real record or on the phantom.

This record doesn't exist, and all of its fields are blank. Cetin's code (locate, check for bof() and eof()) is correct.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform