Skip to content

HandleToInt(handle)

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.

  • Handle:
    The handle of the object.
  • Integer:
    The returned integer is the handle converted to an integer.

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