Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Create cursor command
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00097637
Message ID:
00097957
Views:
25
>>Hello all
>>
>>I've created a table with the copy structure extended command
>>
>>When I want to use the data structure my code reads as follows:
>>
>>SELECT structable
>>GO TOP
>>DIMENSION temp[reccount(), fcount()]
>>FOR i =1 TO RECCOUNT()
>> FOR Y = 1 TO FCOUNT()
>> r = FIELD(Y)
>> temp[i,y] = &r
>> ENDFOR
>> SKIP 1 in structable
>>ENDFOR
>>
>>CREATE CURSOR importer FROM ARRAY temp
>>
>>I'm crashing on the create cursor statement with a syntex error!!
>>What is it??
>>
>>Thanks
>>
>>Sandy
>
>You can keep it simpler:
>Select yourtable
>=afields(aMyarray)
>create cursor tmp from array aMyarray

Sandy (via Ed),
Afields() works because it creates an array with 16 columns of information for each field. If you create an array manually, you MUST have all 16 columns and they must be the correct data types.

HTH
Barbara
Barbara Paltiel, Paltiel Inc.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform