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 Expand view RUN
# 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)) ] ]