Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Create Table From Array
Message
From
14/09/1999 09:13:27
 
 
To
14/09/1999 09:05:01
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00264400
Message ID:
00264405
Views:
17
It appears you have the length and precision mixed up. The first array element should be:

x(1,1) = "MyField"
x(1,2) = "C"
x(1,3) = 25
x(1,4) = 0



>If I fill a 2 dimensional array (aFldNames) with the following:
> String of field name
> String 'C'
> Number 0
> Number 25
>
>and then issue the command
>CREATE TABLE FREE FROM ARRAY aFldNames
>
>I get an error saying that the decimals or field length are invalid. I then tried to replace the numbers with character strings and get the same result.
>
>What is the proper way to do this?
>
>THANKS!
>Tom.
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform