Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problen with array
Message
From
19/01/2011 02:52:53
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01496518
Message ID:
01496526
Views:
80
>>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
Previous
Reply
Map
View

Click here to load this message in the networking platform