Home > lang > special > next 
 fr de es it nl pl pt pt_BR mk sq ca hu cs tr ar fa id vi ko ja ru zh zh_TW eo
Previous  Next  Edit  Rename  Undo  Refresh  Search  Administration  
Documentation
History
 
_next
[ Static ] Public _next ( ) [ As Datatype ]

The _next method is called when the interpreter uses the FOR EACH ... IN instruction to enumerate the object.

The method takes no parameters, and may return an enumerated data.

The method can be static. Then, the class will be enumerable, not the object.

This method can return nothing. Then, you will enumerate the object with a FOR EACH instruction, without the IN part.

Inside the _next method implementation, you will use the Enum class to manage the enumeration:

See also

Special Methods, Enum