SetQueryTimeout 

Syntax

object.SetQueryTimeout  nTimeout

nTimeout - Value of query timeout in seconds.

Description

Call this method to set the value of timeout for queries executed in  ELS-QB component.

Remarks

SetQueryTimeout method returns True if a timeout value of a query is successfully set, otherwise False.

Example

This sample code shows how to allow end user to change ELS-QB component's query timeout.

  Public Sub ChangeQueryTimeout(nTimeout As Long )

    If ELS_QBCtrl.GetQueryTimeout() <> nTimeout Then

        ELS_QBCtrl.SetQueryTimeout nTimeout

    End If

  End Sub