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