Page 1 of 1

xBrowse : oBrw:ColAtPos(nPos)

Posted: Tue Nov 27, 2007 9:31 am
by demont frank
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 :

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)) ] ]

Posted: Wed Nov 28, 2007 8:34 am
by Antonio Linares
Frank,

Modified, many thanks! :-)