Code: Select all
Structure da
a1.f
a2.b
EndStructure
NewList li.da()
For t=1 To 5
AddElement(li())
li()\a2=t
Next
;Bugs (or General Discussion) ?:
;One: Conveniently, PreviousElement() should allow to iterate items from the end of the list backto the beginning of the list, but it doesn't:
ResetList(li())
Debug PreviousElement(li()); <- Returns 0. Function failed (O_O)
Debug ListIndex(li()); <- Returns -1. So then linked list continues reseted
Debug "----------------"
;Another: PreviousElement() doesn't returns the address of the element as manual says, and BTW, NextElement() neither !
SelectElement(li(),2)
Debug PreviousElement(li()); Returns an address (as the manual says)
Debug @li(); <- Returns different address (O_O)



