Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Determining file size
Message
From
02/06/2005 08:52:54
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP1
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01019302
Message ID:
01019315
Views:
23
This message has been marked as the solution to the initial question of the thread.
Function FileSizeInKB
lParameter cFilename
Local lcCompatible, lnReturn
lcCompatible=Set('compatible')
Set Compatible on
lnReturn=Fsize('yourfile.xxx')
Set Compatible &lcCompatible
Return lnreturn/1024
>How can i programmatically determine the size of a file in KB? I want to pass a file as a parameter and determine the size. If the size is below 500KB do this if greater then do that.
>
>Many Thanks
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform