UShort_setValue

Homepage
Wrappers

Sets the value stored in the UShort object.

UShort_setValue(UShortObject, value = 0)

Parameters

UShortObject The UShort object to use for the current operation.
value The value to store in the UShort object.

Return Value

The previous value stored in UShortObject.

Remarks

If UShortObject is NULL (0 or blank), the empty string is returned, to indicate an error.

Related

UShort_getValue

UShort

Examples

;Creates a new UShort initialized to 42
myUShort := UShort_new(42)

;Sets myUShort to 13 (and returns the old value)
oldValue := UShort_setValue(myUShort, 13)

;Outputs oldValue and the value stored in myUShort
MsgBox, % "The previous value for myUShort was: " oldValue . "`n"
        . "The current value for myUShort is: " UShort_getValue(myUShort)

Homepage  |  Wrappers