Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to use the QM code to achieve the following CMD code effect
#17
your asking more than 1 thing you have to search the string and then you wanted the line number.
that was 1 way
 I can simplify it some but its not a built function



Code:
Copy      Help
str s=
;hello world
;QM is very powerful
;sometext
;this is another hello

ARRAY(str) a=s
int i
for i 0 a.len
,if matchw(a[i] "*hello*" 1)
,,mes F"s Contains characters hello, It is in the ({i+1}) line"


Messages In This Thread
RE: How to use the QM code to achieve the following CMD code effect - by Kevin - 02-13-2019, 05:03 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)