ChangeCurrentElement()
Syntax
ChangeCurrentElement(linkedlist(), *NewElement)
Description
Change the current element of the specified list to the given *NewElement. The *NewElement must be a pointer to another element which exists in this list. This function is very useful to remember an element, and calling it back after doing other processing. This is function should be used with care and only by advanced users.
Example :*Old_Element = @mylist() ; Get the address of the actual element ResetList(mylist()) ; Doing a search loop to all elements named While NextItem(mylist()) ; "John" and change them to "J" If mylist()\name = "John" mylist()\name = "J" EndIf Wend ChangeCurrentElement(mylist(), *Old_Element) ; Restore our element before the search
Supported OS
Windows, AmigaOS, Linux