Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Create cursor from array
Message
 
À
18/07/2006 11:12:29
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01137256
Message ID:
01137262
Vues:
20
>Can someone help me with the correct syntax for the create cursor from array command?
>As in:
>
>
>numfiles = adir(myarray,'c:\somefolder\*.mp3','D')
>create cursor crsTemp (something) from array myarray
>
>
>Thanks

Hi Don,
FROM ARRAY ArrayName clause:
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.
Try this
numfiles = adir(myarray,'c:\somefolder\*.mp3','D') 
create cursor crsTemp (something C(50))
APPEND FROM ARRAY myarray
_______________________________________________________________
Testing displays the presence, not the absence of bugs.
If a software application has to be designed, it has to be designed correctly!
_______________________________________________________________
Vladimir Zografski
Systems Analyst
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform