Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

substr command

Status
Not open for further replies.

Matta25

Technical User
Jan 6, 2004
82
US
i have the following script:
while findfirst "file1"
fopen 0 $filename read
fgets 0 aline
substr svalue 0 3
if strfind svalue "xxx"
(do this process)
else if strfind svalue "ZZZ"
(do this process)
endif

I need to also have one more substr svalue 112 5 to get a block of text on the same line a svalue.
any help. thanks
 
i figures it out. the one block of data was at the beginning of the line and the second block was at column 112. when i wan the script the second block value was blank. this was because there was a cr&lf in the file and the data at column 112 was wrapped to the next line. it is old how one edit displays data one way an another does it another way.
thanks for the help again.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top