Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Character line more than 254!
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00102865
Message ID:
00103632
Vues:
23
I once recieved a file where the entire table was sent to me as one line. I t was unbelievably long. The way I solved the issue was using 1 FGETS()
creating a loop and then substringing the entire line while keeping a
generic count:

reading = fgets(lnhandle)
for x = 1 to len(fgets(reading))
m.field1 = substr(reading,x,fieldlength1)
m.field2 = substr(reading, x+fieldlength1+1,fieldlenght2)
etc.
x = fieldlength1 + fieldlength2
endfor

Sandy
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform