Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problen with array
Message
De
19/01/2011 02:52:53
 
 
À
19/01/2011 02:40:11
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01496518
Message ID:
01496526
Vues:
81
>>The '&mRutaXML\*.xml' part can't be legal? What does it mean? A directory can't have an ampersand (&) in it's name.
>>
>>>Code in my application
>>>
>>>lnFiles = ADIR(laDir, '&mRutaXML\*.xml')
>>>
>>>
>>>When build a exe file:
>>> Unable to find unknown LADIR Loctae, Ignore, Ignore all, Cancel
>
>This is an overused macro :-)
>
>
>lnFiles = ADIR(laDir, ADDBS(mRutaXML)+'*.xml')
>
You're right, the syntax actually works, but I find it pretty ugly. Anyway, it won't work with spaces in a directory name. This is always safe:
lnFiles = ADIR(laDir,( mRutaXML+'\*.xml'))
if lnFiles>0 && laDir won't exist if there are no files
* Do something
Endif
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform