Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Create cursor from array
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00749517
Message ID:
00749553
Views:
20
You cannot combine creating array and appending records into one commnand.
CREATE CURSOR pnHold (propno i(4))
DIMENSION ahold(ALEN(ahold,1))  && required so each item goes into separate record
APPEND FROM ARRAY ahold
>I don't understand. Is there more spec I need besides i(4). I tried not null, it did not work. The array is dynamic and has hardly ever has more than 10 records. The array is one column of 6 digit numbers.
>
>>>Would any know why I get the error "Command contains unrecognized
>>>phrase/keyword (Error 36)" from this line of code?
>>>
>>>
>>CREATE CURSOR pnHold (propno i(4)) FROM ARRAY ahold
>>
>>
>>My guess would be the combination of FROM ARRAY and the field specification.
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform