|
The QMRevision() function returns the revision level of the client and server components.
This function returns the revision level of the client and server sides of the session in the standard format of QM release numbers (major.minor-build). If executed before a connection is opened, only the client revision is returned. If a connection is open, the data returned is a dynamic array with two values where the first value is the client revision and the second value is the server revision. If the server pre-dates introduction of this function in release 2.9-0, the server revision will appear as 0.0-0.
char * QMRevision(void)
RevData = QMRevision();
ServerRevision = QMExtract(RevData, 1, 2, 0);
printf("Server revision %s\n", ServerRevision);
QMFree(RevData);
QMFree(ServerRevision);
The pointer returned by this function references a dynamically allocated memory area that must be released using QMFree() when no longer needed. In this example, there are two dynamically allocated strings that must be released in this way.
|
QMRevision() as String
RevData = QMRevision()
ServerRevision = QMExtract(RevData, 1, 2, 0)
MsgBox("Server revision " & ServerRevision)
|
Revision()
RevData = session->Revision
display "Server revision " : RevData<1,2>
|
String Revision(void)
RevData = qm.Revision();
ServerRevision = qm.Extract(RevData, 1, 2, 0);
System.out.printf("Server revision %s%n", ServerRevision);
|
Revision()
RevData = qm.Revision
print("Server revision ", qm.Extract(RevData, 1, 2, 0))
|
|