Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
IStringMap.EnumNext
#1
Hi again, Gintaras and QM lovers!

Please, any advice on how to enumerate from index1 to index2, not from the beginning?

Macro Enumerate example
Code:
Copy      Help
IStringMap m._create
str sk sv
m.EnumBegin
rep
,if(!m.EnumNext(sk sv)) break
,out "%s %s" sk sv
#2
ARRAY(str) ak av
m.GetAll(ak av)
for i index1 index2
...

IStringMap data internally is stored in a sorted array. For example, if you add keys/values
m.AddList("one ONE[]two TWOO[]three THREE")
then you will get
one ONE
three THREE
two TWOO


Forum Jump:


Users browsing this thread: 1 Guest(s)