Message
 
 
To
12/01/2017 11:09:49
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
01646543
Message ID:
01646592
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
>
Thank you for confirming this "limitation"
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Previous
Reply
Map
View