Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Best way to create a table from an array.
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00025095
Message ID:
00025103
Views:
28
>I need to create a cursor or table from an array. The program doing the creating is simply being passed the array and has no idea of how many columns it has or the width or datatype of each of the columns.
>
>I can get the # of columns easy enought, the issue is creating a CREATE CURSOR statement that will have the proper syntax that I can then fill from the array.
>
>I've got some code that "sort of" works, but somehow it seems kludgy. Looking for any good suggestions here.
>
>Thanks,
>Steve Despres
>sdespres@erols.com


Why don't you use the fox command CREATE TABLE ..... FROM ARRAY arrayname ?
If we exchange an apple, we both get an apple.
But if we exchange an idea, we both get 2 ideas, cool...


Gérald Santerre
Independant programmer - internet or intranet stuff - always looking for contracts big or small :)
http://www.siteintranet.qc.ca
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform