Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Use Of ADIR()
Message
From
13/06/2008 18:51:45
 
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01323376
Message ID:
01324022
Views:
21
Thanks you Sergey, that works.

Mal

>See Re: Adir() help Message #909954
>
>>
>>I've never used ADIR() nor arrays. I'm trying to get files names from a network directory (mapped as Z:\) into a VFP cursor. This is what I've tried so far:
>>
>>SET PATH TO Z:\
>>filecount = ADIR(existingfiles,'*.MPG')
>>
>>? filecount will display 24110
>>DISPLAY MEMEORY existingfiles will displays all of the file information.
>>
>>Now, I'd like to get this information from array 'existingfiles' into a VFP cursor by doing the following:
>>
>>CREATE CURSOR filedata FROM ARRAY existingfiles
>>
>>This produces a "Array dimensions are invalid" error message.
>>
>>What am I missing.
>>
>>TIA
Previous
Reply
Map
View

Click here to load this message in the networking platform