Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Use Of ADIR()
Message
De
13/06/2008 18:53:46
 
 
À
12/06/2008 02:42:47
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Allemagne
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01323376
Message ID:
01324024
Vues:
47
Agnes:

Yes, you are right, had to structure the fields.
That works.

Mal

>Hi Mat,
>
>CREATE ... FROM ARRAY needs a special array
>
>from Help:
>FROM ARRAY ArrayName
>Specifies the name of an existing array whose contents are the name, type, precision, and scale for each field in the temporary table. You can use the FROM ARRAY clause instead of specifying individual fields. For the proper format of the contents of the array, see AFIELDS( ) Function.
>
>So You need to create the cursor acording to the fieldstructure of ADIR() and APPEND FROM ARRAY
>
>HTH
>Agnes
>>Hi:
>>
>>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform