Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Determining file size
Message
De
02/06/2005 10:00:54
 
 
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:
01019368
Vues:
20
loFSO = Createobject("Scripting.FileSystemObject")
filepath = 'U:\questpdm\picture\whatever.jpg'
loFile = loFSO.Getfile(filePath)
**** Remove TRANSFORM to see what happens:
IF loFile.Size<= 500000
   MESSAGEBOX("File Size is OK")
ELSE
    MESSAGEBOX("File Size is not OK - File Size="+TRANSFORM(loFile.Size) + CHR(13)+CHR(10)+;
               "Compare "+TRANSFORM(loFile.Size)+"<= 500 000 -> "+TRANSFORM(loFile.Size <= 500000) )
ENDIF
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform