Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Modifying the structure of a cursor
Message
From
04/11/2004 13:45:29
 
 
To
04/11/2004 13:43:40
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00958198
Message ID:
00958200
Views:
20
ALTER TABLE mycursor ...

NB! You must make sure that the cursor is not read only, for example SELECT whatever FROM yourtable INTO CURSOR yourcursor READWRITE

>Is there any way to modify the structure of a cursor? I'm selecting rows from a MS-SQL table into a cursor. There are nearly forty columns in the resulting cursor. Two of the columns are text columns that I have to break down into four columns of fifty chars each. I do this with the MLINE() function to fill in the four new columns that I preallocated in the SQL SELECT...statement. I need to manipulate each of the fifty char columnns before I export the cursor to a SDF format file on another platform. But before I export and create the file I need to drop the two original text fields from the cursor. When I tried to do this I got an error saying that the SQL ALTER TABLE command was not valid for a cursor. Is there any way to do this without naming all of the columns I want in a second SQL SELECT command?
>
>Jim White
Previous
Reply
Map
View

Click here to load this message in the networking platform