Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Recno funny
Message
De
30/07/2007 11:14:52
 
 
À
30/07/2007 10:52:29
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Vista
Divers
Thread ID:
01244570
Message ID:
01244601
Vues:
18
>>>A RECNO() funny - If you have a table and you do a locate (or skip etc) and end up at EOF() then RECNO() returns 1 more than the actual number of records. Does everyone but me know about this :)
>>
>>Because it returns 1 for an table with no records, I had to go and fix a bunch of somebody else's previous code.
>
>Not quite Alan. My table is not without records. It occurs when you ask for RECNO() and you are at EOF() at the same time.

I understand that. I'm just pointing out that because of that, it also returns 1 for an empty table, and that caused me to have to go in and change a bunch of previous code.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform