Home  Contents

mtd16:appendMessageCode

Mtd16 Core4 Lua Commands

SYNOPSIS

mtd16:appendMessageCode(msgCode)

DESCRIPTION

Start a new message at the end of the buffer. One buffer may hold multiple messages. If msgCode is not a number, it is looked up in the table mtd16.lutTag to get its numerical value.

ERRORS

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

EXAMPLE

>  >  >  > 
msg = mtd16.new() msg:appendMessageCode(0xF00F) msg:append(0x3001, "FNORD!") print(msg:trace())
0xF00F=(0x3001="FNORD!")

SEE ALSO