Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Large character field problem...
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00264798
Message ID:
00264838
Vues:
24
Hi Aaron,

>I'm trying to copy data from tables that are currently being used in a program written in Clipper to new tables created with VFP. A few tables have larger than 254 size character fields (most are 1024) which VFP changes the size to 0, which causes the data to "bleed" into other fields and corrupts the table.

Don't append right into the target table. Instead create an intermediate cursor where each of this 1024 fields is splitted into 5 smaller fields and append into that cursor. Then loop through the cursor and copy all records into the actual target table. If the Clipper program really uses more than 254 characters in one field, you have to make it a memo field.

Christof
--
Christof
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform