<head><title>ColdC: Function/Method Reference: add_var()</title></head> <body> <h1 align=center><a href="/ColdC/">ColdC</a>: <a href="/ColdC/Functions/">Function/Method Reference</a>: add_var()</h1> <hr> <p> <font size=+1><i>INTEGER</i> <b>add_var</b>(<i>SYMBOL <b>name</b></i>)</font> <p>This function defines an object variable on the current object. The name of the variable is defined by the symbol <i>name</i>. If an object variable already exists by the desired name, the error <code>~varexists</code> is thrown. <code>add_var()</code> returns <code>1</code> if it is successful. </p> <hr size=4><p align=center><i>Last Modified on Jan 25 1996</i> <br><i>Copyright © 1995, 1996, Brandon Gillespie</i> </body>