QMGetSession()

Top  Previous  Next

 

The QMGetSession() function returns the internal session number associated with the currently selected QMClient session.

 

 

Format

 

VBQMGetSession() as Integer

 

Cint QMGetSession(void)

 

 

A single client may open multiple QMClient connections, each identified by a session number. The QMConnect() and QMConnectLocal() functions select an available session number to use for the newly created session which can be retrieved using QMGetSession(). All subsequent QMClient function calls relate to this session until an alternative session is selected using QMSetSession().

 

The QMGetSession() function has no equivalent in the QMBasic class module API as each session is managed as a separate instantiation of the object.