Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Create cursor from array
Message
 
To
18/07/2006 11:12:29
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01137256
Message ID:
01137262
Views:
19
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform