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