SqlWinExit

Informs DB-Library for Visual Basic that the application is about to exit.

Syntax

SqlWinExit

Remarks

DB-Library for Visual Basic creates and maintains information about each application that has referenced it to prevent conflicts between applications that use DB-Library for Visual Basic concurrently. In order for DB-Library for Visual Basic to release this information, the application must call SqlWinExit just before it exits. Put the call to SqlWinExit before you call the End function to close an application. For example:

Sub Quit_Click() 
   SqlExit
   SqlWinExit
   End
End Sub

SqlWinExit releases the memory DB-Library for Visual Basic allocated to keep track of this application and makes that memory available to other applications.

Important Once your application calls SqlWinExit, it cannot call any other DB-Library for Visual Basic function. If you call SqlWinExit and then want to issue one or more DB-Library for Visual Basic calls, you must again call SqlInit$ to re-register your application.

See Also

SqlInit$