Reading or writing inside a LIST() without move his current position [Resolved]
Posted: Thu Jan 22, 2026 1:55 pm
Hello at all
I suppose it's impossible to read a value in a list() without move current element
Like this
And i suppose too, writing is again worst
Have a good day
I suppose it's impossible to read a value in a list() without move current element
Like this
Code: Select all
Structure MyList
a.s
b.s
EndStructure
NewList ListChange.MyList()
For i = 1 To 5
AddElement(ListChange())
ListChange()\a = "Kcc" + Trim(Str(i))
ListChange()\b = "PureBasic" + Trim(Str(i))
Next
ForEach ListChange()
CurrentElement = ListIndex(ListChange())
Debug ListChange()\a
If CurrentElement < ListSize(ListChange()) - 1
SelectElement(ListChange(), CurrentElement + 1)
Debug ListChange()\b + #CRLF$
SelectElement(ListChange(), CurrentElement)
EndIf
NextHave a good day

