Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
File Attributes - File Sizes...
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00336698
Message ID:
00336703
Views:
17
>>VFP 6.0 Is there a way to programmatically determine the size of a particular file on a drive. My users are constantly adding new .bmp files to the system via a VFP interface. These files should be no larger than 300k. Unfortunately, each day I run across files in excess of 3mg (FILES NOT FORMATTED CORRECTLY, USER ERROR). I want to prompt the user with an error message if the files are too large. Any ideas...
>>
>>TIA
>>
>Hi Rob,
>
>...and another way. If SET COMPATIBLE is set to ON, FSZIE(filename) will also return the file size. The default setting, however, is OFF.

Doh! Make that FSIZE(filename)
George

Ubi caritas et amor, deus ibi est
Previous
Reply
Map
View

Click here to load this message in the networking platform