Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Is IstringMap interface the best to find a string in a list?
#17
Macro Macro1990
Code:
Copy      Help
out

str s=
;c:\program files\myexe1.exe
;c:\program files\myexe2.exe
;c:\program files\myexe3.exe
;c:\program files\myexe4.exe
;c:\program files\anotherone.exe

str sw=
;myexe1
;mystuff
;anotherone
;somethingelse

ARRAY(str) am au

foreach _s sw
,if(findw(s _s)<0) au[]=_s
,else am[]=_s

out "<><Z 0x80c080>Matched</Z>"
out am
out "<><Z 0x80c080>Unmatched</Z>"
out au


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)