SetQueryName
Syntax
sQryName
String
containing query name.
Description
Call
this method to rename the currently open query in the ELS-QB control.
Remarks
SetQueryName
method
returns True if a query open and the operation successful, otherwise it returns
False.
Example
This
sample code shows how to rename currently active query in ELS-QB
component..
Private Function
RenameQuery(sNewName As String)
As Boolean
RenameQuery = False
If sCurrName = "" Then
Exit Function
End
If
Dim
sCurrName
sCurrName
= ELS_QBCtrl.GetQueryName()
If sCurrName <> sNewName
Then
RenameQuery = ELS_QBCtrl.SetQueryName(sNewName)
End
If
End
Function