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