GetCharLinePos 

Syntax:             long GetCharLinePos ();

Return Value:    The line number of the SQL pane editor cursorís position.

Remarks:

Call this method to get the character line of the cursor in the SQL pane editor of  ELS-QB component.

Example:

This sample code shows how to use GetCharLinePos () and GetCharColPos()methods to update contents of some display field, showing the position of cursor in the SQL pane editor  of ELS-QB Control, situated in the Status bar of host application.

             void CELS_QBDemoView::OnShowCursorPosition(CCmdUI* pCmdUI)

{

  CString str;

  if(m_QBCtrl.GetActiveTab() == 0)

{

// The Query tab is currently active

str.Format(_T("Line: %ld\tCol: %ld"),

m_QBCtrl.GetCharLinePos(),

m_QBCtrl.GetCharColPos());

}

  pCmdUI->SetText(str);  

 }