Home  Contents

mtd16.tagName

Mtd16 Core4 Lua Commands

SYNOPSIS

type = mtd16.tagName(tag)

DESCRIPTION

Returns the name of the specified tag by doing a reverse lookup onto the table mtd16.lutTag. The reverse lookup is doing a linear search. If tag is not a number, it is looked up in the table mtd16.lutTag to get its numerical value.

NOTES

This function is meant for debugging purposes.

RETURN VALUE

The name of tag if found, or nil if not. The name is decorated with a prefix indicating its type.

ERRORS

Raises an error if msgCode could not be converted to a number by looking it up in mtd16.lutTag.

EXAMPLE

>  > 
mtd16.lutTag = { Test = 0xF00F } print(mtd16.tagName(0xF00F))
msgTest

SEE ALSO