xBrowse : oBrw:ColAtPos(nPos)

Post Reply
demont frank
Posts: 167
Joined: Thu Mar 22, 2007 11:24 am

xBrowse : oBrw:ColAtPos(nPos)

Post 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)) ] ]
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Frank,

Modified, many thanks! :-)
regards, saludos

Antonio Linares
www.fivetechsoft.com
Post Reply