Destroys the UChar object and frees its memory.
Result := UChar_destroy(UCharObject)
Parameters
| UCharObject |
The UChar object to use for the current operation. |
Return Value
True (1) if the UChar was actually
destroyed,
or False (0) if the UChar was not destroyed (see 1 below).
Remarks
The object will not be destroyed
if:
- The lock count for
UCharObject is more than one. In this case, the lock count for UCharObject
will be decreased by one, and the function returns false to indicate that
the object still exists.
- UCharObject is NULL (0 or blank) - returns the empty string to indicate
an error.
Related
UChar_new
UChar
Examples
;Creates a new UChar initialized to 42
myUChar := UChar_new(42)
;Destroys myUChar and frees its memory
Result := UChar_destroy(myUChar)
Homepage | Wrappers