ResetList()

Syntax

ResetList(List())
Description
Resets the current list element to be before the first element. This means no element is actually valid. However, this is very useful to allow you to process all the elements by using NextElement().

Parameters

List() The name of your list variable, created with the NewList function. You must include the brackets after the list name.

Return value

None.

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

<- PushListPosition() - List Index - SelectElement() ->