Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Is IstringMap interface the best to find a string in a list?
#1
Hi Gintaras, Hi all,

I must test a string variable to a huge bunch of other strings. (>50)

StrSel is what i used, but it's not convenient when there is many many strings to test.
A loop using foreach is what i used , but seems too long.
IStringmap is also a possibility from examples in QM I use now.

My best bet would be something like StrSel, but the tested strings would be in an array filled from a text file.

How to achieve something like:

str test2.getfile("$desktop$\test.txt")
_s="somethingtotest"
int result=SelStr(17 _s test2)
if(result!=0)
action...

Does it exit?

What can you give as advice to best handle that?

thanks


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)