UChar_setValue

Homepage
Wrappers

Sets the value stored in the UChar object.

UChar_setValue(UCharObject, value = 0)

Parameters

UCharObject The UChar object to use for the current operation.
value The value to store in the UChar object.

Return Value

The previous value stored in UCharObject.

Remarks

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

Related

UChar_getValue

UChar

Examples

;Creates a new UChar initialized to 42
myUChar := UChar_new(42)

;Sets myUChar to 13 (and returns the old value)
oldValue := UChar_setValue(myUChar, 13)

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

Homepage  |  Wrappers