Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Appending More than 254 Character in a record From Text
Message
De
19/08/2013 18:13:25
 
 
À
19/08/2013 07:01:19
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP
Network:
Windows XP
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01580757
Message ID:
01580794
Vues:
58
>I am appending Data in a cursor from Text File using Append from abc.txt SDF. The problem is that, of around 700000 records certain records have length of 255 and 256 Characters and therefore the last one o two digits or few characters are not appended properly.
>
>Is there any way like when I append and of the length exceeds 254 Character than the rest of the digits are appended in my next Field(column) or any other Idea to solve such Issue
>
>Regards


Why can't you create a table that has another column next to it, and then combine the two into a memory variable for processing?
* Instead of
CREATE CURSOR c_loader ( cLine c(254) )

* Use
CREATE CURSOR c_loader ( cLine c(254), cOverflow c(254 )
APPEND FROM abc.txt SDF

* And then for each line use lcLine instead:
lcLine = RTRIM(c_loader.cLine + c_loader.cOverflow)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform