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.
- 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