HandleToStr(handle)
Description
Section titled âDescriptionâThe HandleToStr Lua function converts a handle into a string in a hexadecimal number 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.
- String:
The returned string is the handle number converted to a hexadecimal format.
Example
Section titled âExampleâThis example prints the handle hex number for the selected sequence. It also converts the string back to a handle and uses this to print the name of the sequence:
| Copy CodeLua |
| ``` |
| return function() |
Printf("The string (in hex format with 'H#' in front) for the handle of the selected sequence: %s",HandleToStr(SelectedSequence()))end