|
The QMExitPackage() function exits from a licensed software package. It is analogous to the QMBasic EXIT.PACKAGE() function.
The function takes one argument, the package name. It returns 1 if it is successful, 0 if it fails. In the event of failure, the QMStatus() function can be used to determine the cause.
The examples below attempt to exit from a registered package named SALESINFO, reporting an error if this fails.
int QMExitPackage(name)
if (QMExitPackage("SALESINFO") == 0)
{
printf("Error exiting from sales package");
}
|
QMExitPackage(name As String) As Integer
if QMExitPackage("SALESINFO") = 0 Then
MsgBox("Error exiting from sales package", MsgBoxStyle.Exclamation)
End If
|
ExitPackage(name)
if session->ExitPackage("SALESINFO")= 0 then
display "Error exiting from sales package"
end
|
int ExitPackage(String name)
if (qm.ExitPackage("SALESINFO") == 0)
{
System.out.println("Error exiting from sales package");
}
|
ExitPackage(name)
if qm.ExitPackage("SALESINFO") == 0:
print("Error exiting from sales package")
|
See also:
Package licensing, QMEnterPackage()
|