Sends command for interactive interface on AutoCAD LT LTCustomizer21 for AutoCAD LT reference manual

ActiveX
   Function command3(cmd As String, commandline_strings As String, commandline_histories As String) As Integer
C/C++
    int WINAPI LTC_command3(const wchar_t *cmd,
    const wchar_t *commandline_strings[],int cmdline_num,
    const wchar_t *commandline_histories[],int history_num)

parameter
cmd :String sent to AutoCAD LT. command3 adds return code to cmd internally.
commandline_strings:String which display in command line. If ActiveX, plural strings is divided by the null character and 2 null characters are put in the end.
ex(VisualBasic): string & chr(0) & string chr(0) & chr(0
commandline_histories: : String which display in history window on command line. Format of strings is the same as commandline_strings.
cmdline_num : Number of commandline_strings
history_num : Number of commandline_histories

return value
False or 0: User pushed ESC(means cancel) key on AutoCAD LT ,or other error occurred.
True or 1: Success. When a return key was pressed or when the command has normally ended.

Other values:
From 2 to cmdline_num-1: Indicates index of commandline_strings that hit on commandline window of AutoCAD LT. If ActiveX, the index is return value – 2. If C/C++, the index is return value – 3.
More than 2 + cmdline_num: Indicates index of commandline_histories that hit on commandline history window of AutoCAD LT. If ActiveX, the index is return value – cmdline_num - 1. If C/C++, the index is return value – cmdline_num -2.

Command3() is the function which made command2() more strong on controlling user interface.
This function returns when specified strings hit or user pushed cancel key(ESC) or AutoCAD LT display command line string.
Additionally, you can know user operation by checking return value of command3(). By this function, program provides user interface in conformity with the user's operation.

See example [command3] handler in LTCustomizer21 test application.