Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Field get cut at 10 chr...
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00524123
Message ID:
00524215
Vues:
16
>What solution, other then change my field name, can I use?
>

>>VFP has a maximum field name length of 10 (unless table is inside DBC).
>>
>>>We are doing a transfer of data from VFP database (DBC) via a remote view with ODBC. What we are doing is transfer data to an another table.
>>>
>>>Select ViewFld1 as MyLongNameField1 from ViewRemote into curosr MyTmpCursor
>>>select MyTable
>>>Append from dbf("MyTmpCursor")
>>>
>>>
>>>The result of my cursor cut the field name to 10 chr. (MyLongName)?
>>>Why? Is this normal?

See the MSDN Library - Create Cursor. Then append your data.

Example from above:

CREATE CURSOR employee ;
(EmpID N(5), Name C(20), Address C(30), City C(30), ;
PostalCode C(10), OfficeNo C(8) NULL, Specialty M)


Tom
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform