xBrowse : oBrw:ColAtPos(nPos)

xBrowse : oBrw:ColAtPos(nPos)

Postby demont frank » 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 :

Code: Select all  Expand view
# 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)) ] ]
demont frank
 
Posts: 167
Joined: Thu Mar 22, 2007 11:24 am

Postby Antonio Linares » Wed Nov 28, 2007 8:34 am

Frank,

Modified, many thanks! :-)
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42079
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 60 guests