FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin para Harbour/xHarbour xBrowse evitar el dialogo popup al capturar un string largo
Posts: 143
Joined: Fri Oct 07, 2005 03:14 PM

xBrowse evitar el dialogo popup al capturar un string largo

Posted: Sat Aug 28, 2021 05:01 PM

Buen día foro, tengo un detalle con xbrowse, al capturar en una columna con un varchar(200), en automático se abre una ventana pop para la captura del texto, como si fuera un memo;
Se puede evitar la ventana, es decir, que la captura sea directamente sobre la columna del xbrowse ?

Joel Andujo
de antemano gracias
FWH 21.04 xHarbour

Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM

Re: xBrowse evitar el dialogo popup al capturar un string largo

Posted: Sat Aug 28, 2021 05:40 PM
Please set
Code (fw): Select all Collapse
oCol:cDataType := "C"
oCol:nDataLen  := 200


Are you using ADO or Dolphin?
Regards



G. N. Rao.

Hyderabad, India
Posts: 143
Joined: Fri Oct 07, 2005 03:14 PM

Re: xBrowse evitar el dialogo popup al capturar un string largo

Posted: Sat Aug 28, 2021 06:16 PM

Excellent Mr. Nages, thank you !!
I use ADO.

have a nice day
Joel Andujo

Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM

Re: xBrowse evitar el dialogo popup al capturar un string largo

Posted: Sun Aug 29, 2021 01:39 AM
Please also set:
Code (fw): Select all Collapse
            oCol:bEditValue   := { |x| If( x != nil, ::oRs:Fields( cnCol ):Value := Trim( x ), ;
                                    PadR( IfNil( ::oRs:Fields( cnCol ):Value, "" ), 200) ) }


At present, xbrowse treats any VarChar field with length >100 as memo and length <= 100 as Char.
The limit of 100 is now hard coded in xbrowse.
In the next version, we will make this value programmer configurable.
Regards



G. N. Rao.

Hyderabad, India
Posts: 143
Joined: Fri Oct 07, 2005 03:14 PM

Re: xBrowse evitar el dialogo popup al capturar un string largo

Posted: Tue Aug 31, 2021 03:52 PM

Okay Mr. Nages, I make the change and I look forward to the next update.

Regards.
Joel Andujo

Continue the discussion