|
The QMEndCommand() function aborts a command executed on the server that is requesting input.
This function may only be used when an immediately preceding QMExecute() or QMRespond() function has returned a status of SV_PROMPT.
The example program fragments below execute a command on the server. If this command prompts for input, it is terminated.
void QMEndCommand(void, int * Err);
Response = QMExecute(Command, &Err);
if (Err == SV_PROMPT) QMEndCommand();
The Response variable points to dynamically allocated memory that must be released with QMFree() when no longer needed.
|
QMEndCommand
Response = QMExecute(Command, Err)
if Err = SV_PROMPT Then QMEndCommand
|
EndCommand
Response = session->Execute(Command, Err)
if Err = SV$PROMPT Then session->EndCommand()
|
String EndCommand(String Command)
Response = qm.Execute(Command);
if (qm.ServerError == SV_PROMPT) qm.EndCommand();
|
EndCommand()
Response, Err = qm.Execute(Command)
if Err == SV_PROMPT: qm.EndCommand()
|
See also:
QMExecute(), QMRespond()
|