Cold Help System: Programming: ColdC Reference Manual: Functions: Variable: set_var()


ANY set_var(SYMBOL name, ANY value)

This function sets the instance of an object variable on the current object. The variable must be defined on the same object which defined the method which calls set_var(). Using this function is the same as using the assignment operator. If the object variable is not defined, the error ~varnf is thrown. The return value for set_var() is the second argument value. The following two examples are equivalent:

set_var('time_stamp, time())
=> 855723496
time_stamp = time()


add_var() | clear_var() | del_var() | get_var() | set_var() | variables()


the Cold Dark