FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour xbrowse and logic field
Posts: 332
Joined: Thu Nov 17, 2005 09:11 PM
xbrowse and logic field
Posted: Fri Aug 07, 2015 06:50 PM

Hi, what the best way to show a logical field in xbrowse? I try this and get a execution error

oCol := oBrw:AddCol()
oCol:bStrData := { || ARQMOT->BLOQ }
oCol:cHeader := "BLOQUEADO"

thanks in advance.

Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: xbrowse and logic field
Posted: Fri Aug 07, 2015 06:55 PM
Cristobal Navarro

Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo

El secreto de la felicidad no está en hacer lo que te gusta, sino en que te guste lo que haces
Posts: 332
Joined: Thu Nov 17, 2005 09:11 PM
Re: xbrowse and logic field
Posted: Fri Aug 07, 2015 07:37 PM
cnavarro wrote:Look

viewtopic.php?f=3&t=29601&p=167188&hilit=checkbox+xbrowse#p167355

Or find "checkbox xbrowse"


Hi, thanks but i try this and still Error description: Error BASE/1111 Argument error: LEN

oCol := oBrw:AddCol()
oCol:AddResource( "CHECKOFF" )
oCol:AddResource( "CHECKON" )
oCol:bBmpData := { || IF((ARQMOT)->INTATIVO, 1,2 )}
oCol:bStrData := { || NIL }
oCol:cHeader := "BLOQUEIO"
Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: xbrowse and logic field
Posted: Fri Aug 07, 2015 07:56 PM
Prueba como en el ejemplo que puso un compañero

Code (fw): Select all Collapse
          WITH OBJECT oLbx:aCols[3]
            :AddBmpFile(   "checkon.BMP")
            :AddBmpFile(   "checkoff.BMP")
            :bBmpData     := {|| IF( activi->estado, 1, 2) }
            :bStrData     := {|| IF( activi->estado, 'Si', 'No') }
            :blDClickData := {|o, v| ( activi->estado:= !activi->estado, oLbx:DrawSelect() ) }
          END
Cristobal Navarro

Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo

El secreto de la felicidad no está en hacer lo que te gusta, sino en que te guste lo que haces

Continue the discussion