ResetList()
Syntax
ResetList(LinkedList())Description
Resets the current list element to be before the first element. This means than no element is actually valid. However, this is very useful to allow you to process all the elements by using NextElement().
Parameters
LinkedList() The name of your linked-list variable, created with the NewList function. You must include the brackets after the list name.
Return value
This function has no return value.
Example
NewList Friends.s() AddElement(Friends()) Friends() = "Arnaud" AddElement(Friends()) Friends() = "Seb" ResetList(Friends()) While NextElement(Friends()) Debug Friends() ; Display all the list elements Wend
See Also
NextElement(), ListIndex()
Supported OS
All