Char_setValue |
Homepage Wrappers |
Sets the value stored in the Char object.
Char_setValue(CharObject, value = 0)
| CharObject | The Char object to use for the current operation. |
| value | The value to store in the Char object. |
If CharObject is NULL (0 or blank), the empty string is returned, to indicate an error.
;Creates a new Char initialized to 42 myChar := Char_new(42) ;Sets myChar to 13 (and returns the old value) oldValue := Char_setValue(myChar, 13) ;Outputs oldValue and the value stored in myChar MsgBox, % "The previous value for myChar was: " oldValue . "`n" . "The current value for myChar is: " Char_getValue(myChar)