Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
FSIZE() Gotcha
Message
 
 
To
12/04/2000 14:46:03
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00358858
Message ID:
00359131
Views:
14
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform