SqlInit$

Initializes DB-Library for Visual Basic.

Syntax

SqlInit$ ( )

Returns

A string containing the version number of DB-Library for Visual Basic. If initialization is unsuccessful, SqlInit$ returns an empty string.

Important If SqlInit$ returns an empty string, do not attempt to call any other DB-Library for Visual Basic procedures because unpredictable results can occur.

Remarks

You must call SqlInit$ before calling any other DB-Library for Visual Basic procedures.

SqlInit$ initializes the user-defined error and message handlers, if present. When running with the Windows environment, DB-Library maintains information about each application that has referenced it. DB-Library creates the information when a library application calls SqlInit$; it does this to prevent conflicts between applications that use DB-Library concurrently. In order for DB-Library to release this information, the application must call SqlWinExit just before it exits.

See also

SqlOpen% and SqlWinExit