Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Control characters in QM Output
#2
This is my approach. Any advice is mostly welcome.

Function tempf14
Code:
Copy      Help
str sout="$temp$\qm_out.txt"
str s=GetQMOutput
;mes s
str sl so sou
int j k
foreach sl s
,j=find(sl "<")
,if j<0
,,so=sl
,,sou.formata("%s[]" so)
,,continue
,k=find(sl ">" j)
,if k<0
,,so=sl
,,sou.formata("%s[]" so)
,,continue
,so=sl
,so.replace("" j k-j+1)
,sou.formata("%s[]" so)
,
sou.setfile(sout)
run sout


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)