readmap question

Cor

Active Member
Licensed User
Longtime User
textfile

----------------
[C#]=
f4=01

f4=02
-----------------

mymap=File.ReadMap(File.DirAssets,"textfile.txt")

'will find the [C#] key however if i want from that point
find the first f4 it comes always with the latest f4

For i = 0 To mymap.Size-1
If mymap.GetKeyAt(i)="[C#]" Then Exit
Next

For key = i To mymap.Size-1
If mymap.GetKeyAt(key)="f4" Then Exit
Next

'shows 02 the value of the latest f4 key
ToastMessageShow(mymap.GetValueAt(key),True)

Maybe i'am missing something


grCor
 
Top