HandleToStr(handle)

grandMA3 ユーザマニュアル » プラグイン » Lua 関数 - Object-Free API » HandleToStr(handle) Version 2.2

説明

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.

引数

  • handle:
    オブジェクトのハンドルです。

戻り値

  • string:
    The returned string is the handle number converted to a hexadecimal format.

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:

Lua
return function()
Printf("The string (in hex format with 'H#' in front) for the handle of the selected sequence: %s",HandleToStr(SelectedSequence()))
end