QMConnected()

Top  Previous  Next

 

The QMConnected() function confirms whether a QMClient session is open.

 

 

Format

 

VBQMConnected() as Boolean

 

Cint QMConnected()

 

ObjBool = Session->Connected

 

 

The QMConnected() function can be used by an application to determine whether a client session is open.

 

 

Examples

 

VB

If Not QMConnected() Then

  MsgBox "Not connected", VBExclamation

End If

C

if (!QMConnected())

{

 printf("Not connected");

 exit;

}

QMBasic

if not(session->Connected) then

  stop "Not connected"

end

 

The above program tests whether a QMClient connection is open and, if not, displays an error message.