<!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 - _put
</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="_next+en">Previous</a>&nbsp;
<a href="_unknown+en">Next</a>&nbsp;
</td></tr></table>
<div class="notab">
<h1>
_put
</h1>
<div class="black"><font size="-2"><b>Declaration</b></font></div>
<pre class="syntax">GB_METHOD ( &quot;_put&quot; , NULL , MyClass_put , <u>Parameters</u> )
<br>
GB_STATIC_METHOD ( &quot;_put&quot; , NULL , MyClass_put , <u>Parameters</u> )</pre><p>

The <tt>_put</tt> method is called when the <tt>[]</tt> operator is used on the object or the class to insert data in it.
<p>
The method can be static. Then, the <tt>[]</tt> operator will have to be used on the class, not the object.
<p>
The method can take any parameters. These parameters will be the value to insert into the object,
and those passed between the <tt>[</tt> and the <tt>]</tt> operators.
<p>
For example, the instruction <tt>MyObject[X, Y] = Value</tt> will cause a call to <tt>_put</tt> with <tt>Value</tt>,
<tt>X</tt> and <tt>Y</tt> as parameters.
<p>
This method returns nothing.
<p>
<hr><b>See also</b><br>
<a href="../special+en">Special Methods</a>&nbsp; <a href="../method+en">Methods Implementation</a>&nbsp;

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

