Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Add column to a cursor
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01664052
Message ID:
01664059
Views:
63
>Hi,
>
>Is there a trick to be able to add a column to a cursor created with XMLTOCURSOR()? I pass the following parameters to the XMLTOCURSOR():
>512+8192
>
>And then if you call ALTER TABLE ADD COLUMN CoName C(10), you get the error "Invalid operation on the cursor".
>
>Can I change anything in the parameter to XMLTOCURSOR() to all adding a column?
>
>TIA

If you can not add it to cursor before XMLTOCURSOR() then:
XMLTOCURSOR() && Get the cursor here. Lets say it is called crsTest

SELECT *, CAST("" as C(10)) AS CoName FROM crsTest INTO CURSOR crsTest READWRITE
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform