Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Phantom Record
Message
De
28/12/2001 12:04:01
 
 
À
28/12/2001 11:04:06
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00598707
Message ID:
00598845
Vues:
24
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform