Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Phantom Record
Message
From
28/12/2001 12:04:01
 
 
To
28/12/2001 11:04:06
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00598707
Message ID:
00598845
Views:
22
Dragan,

>And so it should - that's what the phantom record is for, so that you always have something in the fields.

PMFJI ... if your object ControlSource is MyTable.MyField and MyTable is at EOF(), then that object will be disabled on the form ... so, what's the point of a "phantom" record. I'm not quite sure what's going on in this situation though.

~~Bonnie



>>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.
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform