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 07:19:21
 
 
À
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:
01580759
Vues:
88
>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

(1) yes, it is possible
You'll have to create a cursor with a memo field
Then read the file with fgets( fd, 8192) and insert each line in the cursor

(2) I think you're going the wrong way about this

Postscript is a stack based interpreted language

The end of a line is not necessarily the end of an instruction sequence
eg
 0 0 moveto
can also be written as
0
0
moveto
You are reading a stream of tokens (elements)
If you strip the comment lines - it is as if the input were one continuous line
Gregory
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform