HandleToInt(handle)
Description
Section titled “Description”The HandleToInt Lua function converts a handle into an integer format.
See the Handle topic for more info regarding handles and links to other related functions.
Arguments
Section titled “Arguments”- Handle:
The handle of the object.
Return
Section titled “Return”- Integer:
The returned integer is the handle converted to an integer.
Example
Section titled “Example”This example prints the handle integer number for the selected sequence. It also converts the integer back to a handle and uses this to print the name of the sequence:
| Copy CodeLua |
| ``` |
| return function() |
Printf("The integer number for the handle of the selected sequence: %i", HandleToInt(SelectedSequence()))end