Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Array problem on build
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows XP
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01363805
Message ID:
01363809
Vues:
8
>hi all,
>I have code that saves a a file into a folder. what I want to do is look at the size of the file and if it is too small delete it and give a warning. I have taken out the relevant lines and included below. All seem to be correct but when i compile i get the following 'Unable to find Unknown MARRY1'
>
>mcallnum2 = SYS(5) + CURDIR() + "folder1\" + mfilename+ ".jpg"
>
>ADIR(marray1,('&mcallnum2'))
>
>IF ALEN(marray1,1) > 0
>    mfilesize = marray1[1,2]
>    * this figure, for the file size, is in bytes
>    IF mfilesize > 120000
>
>any help appreciated
>~M

There's not some other code you're not showing us that features MARRY1, is there, as your array is MARRAY1?

or is that just a typo?
- Whoever said that women are the weaker sex never tried to wrest the bedclothes off one in the middle of the night
- Worry is the interest you pay, in advance, for a loan that you may never need to take out.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform