Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Cannot change cursor column name
Message
De
12/01/2017 11:09:49
Antonio Lopes (En ligne)
BookMARC
Coimbra, Portugal
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
01646543
Message ID:
01646591
Vues:
30
>>>
>>>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform