Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
IStringMap ?
#1
i have searched in Help but its hart to understand if you read it first time Sad

Function Function
Code:
Copy      Help
str Blocklist Searched

Searched = "user ([email protected])"
Blocklist.getfile("$desktop$\test.txt")

IStringMap m=CreateStringMap(1|2)
m.AddList(Blocklist "[]")
err ret ;; not sure about this but without it generates error if file is empty

if(!m.Get(Searched))
,out "not found"
else
,out "found"

Any chance to match even if the txt file only contains a part of my string like the email add ?

Thanks again for everything you do for us !

regards
#2
IStringMap does not search for partial string.
You can use m.EnumX or m.GetAll to get all items, and some string function to compare each string. But will not be very fast.
Instead of IStringMap you can use ARRAY or ICsv. Also will need to enumerate/compare.
#3
Ok thanks i will try it with ARRAY then

regards


Forum Jump:


Users browsing this thread: 1 Guest(s)