Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Determining file size
Message
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:
01019322
Vues:
19
Thanks Borislav

I have used the following function but I keep getting the Messagebox stating It is not OK when my file is only 79KB. Any ides?
loFSO = Createobject("Scripting.FileSystemObject")
filepath = 'U:\questpdm\picture\whatever.jpg'
loFile = loFSO.Getfile(filePath)

IF transform(loFile.Size)<='500000'
	MESSAGEBOX("File Size is OK")
	ELSE
	MESSAGEBOX("File Size is not OK")
ENDIF
I should be getting the message "File Size is OK"
Neil Lewis
IT R&D Manager
Velmore Ltd
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform