Click or drag to resize

SQLConnectErrorMsg Function

X#
Return and optionally change the setting that determines whether to display connection error messages.

Namespace:  VOSQLClasses
Assembly:  VOSQLClasses (in VOSQLClasses.dll) Version: 2.19
Syntax
 FUNCTION SQLConnectErrorMsg(
	lValue
) AS LOGIC CLIPPER
Request Example View Source

Parameters

lValue (Optional)
Type: Usual
TRUE enables the connection error message; FALSE disables the connection error message. The initial default is TRUE.

Return Value

Type: Logic
If lNewSetting is not specified, SQLConnectErrorMsg() returns the current setting. If lNewSetting is specified, the previous setting is returned.
Remarks
If SQLConnectErrorMsg() is set to FALSE, connection error messages are not displayed. If SQLConnectErrorMsg() is set to TRUE, which is the default, a connection error message is displayed in a message box.
Examples