SetQueryName 

Syntax:             BOOL SetQueryName(LPCTSTR sQryName);

Return Value:    TRUE if a query is open and the operation successful, otherwise FALSE.

Parameters:

                        sQryName      Pointer to a string representing query name.

Remarks:

Call this method to rename the currently open query in the ELS-QB control.

Example:

This sample code shows how to rename currently active query in ELS-QB component..

BOOL CELS_QBDemoView::RenameQuery(LPCTSTR lpstrNewName)

{

CString strCurrName = m_QBCtrl.GetQueryName();

if(strCurrName.IsEmpty())

return false ;

if(strCurrName != lpstrNewName)

      return m_QBCtrl.SetQueryName(lpstrNewName);

return true ;

}