<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="../../../../style.css">
<title>
Gambas Documentation - _next
</title>
</head>
<table class="none" width="100%" cellpadding="0" cellspacing="0" border="0">
<tr><td align="left">
<font size="-1">
<a href="../../../../help+en"><img class="flag" alt="Home" border="0" src="../../../../img/lang/en.png" align="center"></a>&nbsp;
<a href="../special+en">Up</a>&nbsp;
<a href="_new+en">Previous</a>&nbsp;
<a href="_put+en">Next</a>&nbsp;
</td></tr></table>
<div class="notab">
<h1>
_next
</h1>
<div class="black"><font size="-2"><b>Declaration</b></font></div>
<pre class="syntax">GB_METHOD ( &quot;_next&quot; , <u>Return Type</u> , MyClass_next , NULL )
<br>
GB_STATIC_METHOD ( &quot;_next&quot; , <u>Return Type</u> , MyClass_next , NULL )</pre><p>

The <tt>_next</tt> method is called when the <a href="../../../def/gambas+en">Gambas</a> program use the <a href="../../../lang/foreach+en">FOR EACH</a> ... <a href="../../../lang/in+en">IN</a>
instruction to enumerate the object.
<p>
The method takes no parameters, and may return an enumerated data.
<p>
The method can be static. Then, the class will be enumerable, not the object.
<p>
This method can return nothing. Then, you will enumerate the object with a <a href="../../../lang/foreach+en">FOR EACH</a>
instruction, without the <a href="../../../lang/in+en">IN</a> part.
<p>
Inside the <tt>_next</tt> method implementation, you will use some specific <a href="../../../def/gambas+en">Gambas</a> Programming
Interface functions. See <a href="../enum+en">Enumeration Management</a> for more information.
<p>
<hr><b>See also</b><br>
<a href="../special+en">Special Methods</a>&nbsp; <a href="../method+en">Methods Implementation</a>&nbsp; <a href="../enum+en">Enumeration Management</a>&nbsp;

</div>
</body>
</html>

