Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
FSIZE() Gotcha
Message
 
 
À
12/04/2000 14:46:03
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00358858
Message ID:
00359131
Vues:
15
>If you call FSIZE() with a field that does not exist, it returns 0, rather than throwing an error. Although, I suppose, MS could argue this is "by design".
>
>So, watch out for typos with FSIZE().

It's been posted here a couple of time that I've seen as a way to check whether a field exists instead of parsing the AFIELDS() output.

Also, take note that FSIZE() returns different information depending on SET COMPATIBLE. If it's OFF (default) then it returns field information. If it's ON, then it returns the size of files (which is a very quick way to find the size of files and not parse the ADIR() output).

< snipped >
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform