Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Create cursor from array
Message
From
18/07/2006 12:14:28
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01137256
Message ID:
01137278
Views:
15
>>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
Vladimir -
Thanks. That's helpful.
Previous
Reply
Map
View

Click here to load this message in the networking platform