Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Import Data Problem
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00825859
Message ID:
00825864
Vues:
11
>I have a textfile with 31,000 lines.
>
>A few hundred of the lines are very long, some as much as 500
>characters.
>
>I'd like to import each line of this file into memo fields.
>
>When I use a low-level file, any string over 254 characters in
>length is truncated.
>
>Any ideas?

You need to specify a larger line length in order to read that file. The FGETS() function defaults to 254 characters unless you specify a larger number and the maximum is 8192.

cLine = FGETS(nHandle,8192)
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform