Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Cannot change cursor column name
Message
From
12/01/2017 11:09:49
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
01646543
Message ID:
01646591
Views:
29
>>>
>>>I am sure that VFP team will fix it in version 10.0 :).
>>
>>It's not a bug. The structure of cursors can not be modified by a program, tables' can.
>>
>
>I am not saying it is a bug or not. But the fact is that you CAN change the structure of a cursor using ALTER TABLE CursorName when the column is not longer than 10 characters.
>

You are right, I should have rechecked and go deeper. As long as there are no extended field names, the cursor can be altered freely.

For instance,
CREATE CURSOR CursorName (D1 C(10), D2 C(10))
ALTER TABLE CursorName RENAME D1 TO D1234567890
is allowed, but
CREATE CURSOR CursorName (D1 C(10), D2 C(10))
ALTER TABLE CursorName RENAME D1 TO D1234567890
ALTER TABLE CursorName RENAME D2 TO D_1234567890
raises an error (on the second ALTER), and so does
CREATE CURSOR CursorName (D1 C(10), D1234567890 C(10))
ALTER TABLE CursorName RENAME D1 TO D2
----------------------------------
António Tavares Lopes
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform