xBrowse : oBrw:ColAtPos(nPos)
Posted: Tue Nov 27, 2007 9:31 am
Hello,
I have a button with as action :
ATAIL(oBrw:aCols):Hide() , Prnt(oBrw ) , ATAIL(oBrw:aCols):Show()
This give a error in :
METHOD ColAtPos( nPos ) INLINE ::aCols[ ::aDisplay[ nPos ] ]
LEN(::aDisplay) < LEN(::aCols) while npos == LEN(::aCols)
Maybe is better :
I have a button with as action :
ATAIL(oBrw:aCols):Hide() , Prnt(oBrw ) , ATAIL(oBrw:aCols):Show()
This give a error in :
METHOD ColAtPos( nPos ) INLINE ::aCols[ ::aDisplay[ nPos ] ]
LEN(::aDisplay) < LEN(::aCols) while npos == LEN(::aCols)
Maybe is better :
Code: Select all
# xtranslate MinMax(<xValue> , <nMin> , <nMax> ) => Min ( Max( <xValue> , <nMin> ) , <nMax> )
METHOD ColAtPos( nPos ) INLINE ::aCols[ ::aDisplay[MinMax(IIF(npos==nil,1,nPos),1,LEN(::aDisplay)) ] ]