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

Click here to load this message in the networking platform