Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Character line more than 254!
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00102865
Message ID:
00103632
Views:
24
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
Previous
Reply
Map
View

Click here to load this message in the networking platform