Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to create table from array
Message
 
 
To
25/08/2009 16:34:45
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
01420578
Message ID:
01420583
Views:
43
You're welcome. I've updated my message - but you can simply check APPEND FROM command in Help.

>>>Can someone tell me what's wrong with my syntax on this?
>>>
>>>numfolders = adir(aFolders,'j:\*.*')
>>>
>>>create table myFolders (cName c(40),filesize N(10), filedate D ) from array aFolders
>>>
>>>Thanks
>>
>>I believe you should be looking into append from command in your case. The array for CREATE TABLE should be a result from AFIELDS, not adir.
>>
>>See in 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 table. You can use the FROM ARRAY clause instead of specifying individual fields in the SQL CREATE TABLE statement. For the proper format of the contents of the array, see AFIELDS( ) Function.
>>
>>Autoincrementing is turned on when StepValue is greater than 0.
>
>AHHH . . . OK Thanks.
>I was just working from the intellisense help.
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform