Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Determining file size
Message
De
02/06/2005 10:14:07
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP1
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01019302
Message ID:
01019384
Vues:
20
If FileSizeKB('yourfile.extension')<500
  Messagebox('File is smaller than 500KB')
Else
  Messagebox('File is 500KB or bigger')
Endif
Function FileSizeInKB
lParameter cFilename
Local lcCompatible, lnReturn
lcCompatible=Set('compatible')
Set Compatible on
lnReturn=Fsize('U:\questpdm\picture\whatever.jpg')
Set Compatible &lcCompatible
Return lnreturn/1024
>Hi Tore
>
>I have ran my program and it returns nothing. Obviously I am new to this!
>
>
>Function FileSizeInKB
>lParameter cFilename
>Local lcCompatible, lnReturn
>lcCompatible=Set('compatible')
>Set Compatible on
>lnReturn=Fsize('U:\questpdm\picture\whatever.jpg')
>Set Compatible &lcCompatible
>Return lnreturn/1024
>
>
>How do I check the value in a an IF condition to see if it is greater than or less than 500KB
>
>Thanks Tore
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform