Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How can I change a fieldname - programatically
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01439486
Message ID:
01439753
Vues:
47
>Good idea! I implemented my solution thusly...
>
>All fields returned with afields... I change the name of the field to _fname001,_fname002,_fname003,... where fname is the name returned. the _ at the start solved the invalid fieldname and the 001... makes sure the field name is unique...
>
>Then I create a new table from the new afields and populate it via scanning through the table and scattering the fields to an array and then inserting the values into the new table.
>
>
>It works with fields no field name spreadsheets i.e. with no first row, with field names starting with an invalid character, and with spreadsheets with valid field names as well.
>
>Thank you Ian,
>Mike
>

You're welcome.
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform