Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Unable to locate the table while importing
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00406624
Message ID:
00406686
Views:
44
If I understand you need that your string begins in character 31. If so then modify the block of code for:
*- Try playing with substr function and printing the returned valus until you get the correct values.

DO WHILE !FEOF(nhdl)
cString=FGETS(nhdl, 185)

*-- New Line
cString=Substring(cString,31,len(alltrim(cString)))


*---
cStr1=Substr(cString, 1, 30)
orig_lata=Substr(cString,31,3)
cStr2=Substr(cString, 34, 44)
term_lata=Substr(cString,78,3)
Bill_dur=Substr(cString,81,5)
cStr2=Substr(cString, 86)
ENDDO
ENDIF
ENDIF
"Anyone who has never made a mistake has never tried anything new." A.E
"The important thing is not to stop questioning. Curiosity has its own reason for existing." A.E
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform