Page 1 of 1

SelectElement() and ResetList()

Posted: Thu Apr 14, 2005 1:53 am
by akj
I would like a minor generalisation made to the functionality of SelectElement() so that when the last parameter is negative, it acts like ResetList() rather than giving a run-time error (whilst in the debugger).

For example:

Code: Select all

SelectElement(mylist(),-1)
currently generates a runtime error. I would like this changed so that instead its behaviour becomes identical to that of

Code: Select all

ResetList(mylist())
This will simplify the logic of some of my programs.