Mr Antonio
In one of the recent revisions of TXBrowse, the new method nAt was introduced.
Under what circumstances oBrw:nAt() and oBrw:nColSel give different values?
Method nAt returns ::ColPos( ::SelectedCol() )
Method SelectedCol() returns ::ColAtPos( ::nColSel ) and in turn ColAtPos( ::nColSel ) returns ::aDisplay[ ::nColSel ]
Therefore SelectedCol() returns ::aDisplay[ ::nColSel ]
Method ColPos( ::SelectedCol() ) appears to be equivalent to ColPos( ::aDisplay[ ::nColSel ] ) returning the position in ::aDisplay, which is again ::nColSel.
From the above it appears that oBrw:nAt() always returns ::nColSel. If so where is the need for the method nAt() ?
If the intention is to have naming compatibility with TWBrowse and TCBrowse, nAt should have been named nColAct(). This helps easy migration from TWBrowse or TCBrowse to TXBrowse.
Do I miss something?
TXBrowse nAt() and nColSel
- nageswaragunupudi
- Posts: 8017
- Joined: Sun Nov 19, 2006 5:22 am
- Location: India
- Contact:
TXBrowse nAt() and nColSel
Regards
G. N. Rao.
Hyderabad, India
G. N. Rao.
Hyderabad, India
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact: