CodeOfCmd function
<CodeOfCmd(CommandName: String)> returns the code of CLData command, which name is passed as a parameter. Each CLData command has a unique numerical identifier - code. CLData command codes are listed in the appendix. The function has the following format.
CodeOfCmd(CommandName: String): Integer
CommandName - text name of the command. It must be one of the command names that can be seen in the CLData list on the left side of the main window . The returned value can be used with operators like <CurCode>, <NextCode>, <GetCLD>, <CLDFile[i].Cmd[j].Code>.
Example:
if NextCode=CodeOfCmd("Fini") then
Output "M02"
See also:
CLData functions and operators