QMRespond()

Top  Previous  Next

 

The QMRespond() function responds to a request for input from a command executed on the server.

 

 

Format

 

VBQMRespond(ByVal Response as String, ByRef Errno as Integer) as String

 

Cchar * QMRespond(char * Response, int * Errno)

 

ObjSession->Respond(Response, Errno)

 

where

 

Responseis the response to be sent.

 

Errnois an integer variable to receive status information.

 

 

This function may only be used when an immediately preceding QMExecute() or QMRespond() function has returned a status of SV_PROMPT.

 

The QMRespond() function returns the given Response to the input request from the server command. Further output from this command is returned as a text string.

 

If the command completes without requesting input, the Errno variable is set to SV_OK.

 

If the command requests further input, any output up to that point is returned and the Errno variable is set to SV_PROMPT. The client may respond to this using the QMRespond() function or abort the command using the QMEndCommand() function.