xBrowse evitar el dialogo popup al capturar un string largo

xBrowse evitar el dialogo popup al capturar un string largo

Postby Joel Andujo » Sat Aug 28, 2021 5: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
User avatar
Joel Andujo
 
Posts: 131
Joined: Fri Oct 07, 2005 3:14 pm
Location: Cd. Obregón, Sonora, México

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

Postby nageswaragunupudi » Sat Aug 28, 2021 5:40 pm

Please set
Code: Select all  Expand view  RUN

oCol:cDataType := "C"
oCol:nDataLen  := 200
 


Are you using ADO or Dolphin?
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10646
Joined: Sun Nov 19, 2006 5:22 am
Location: India

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

Postby Joel Andujo » Sat Aug 28, 2021 6:16 pm

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

have a nice day
Joel Andujo
User avatar
Joel Andujo
 
Posts: 131
Joined: Fri Oct 07, 2005 3:14 pm
Location: Cd. Obregón, Sonora, México

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

Postby nageswaragunupudi » Sun Aug 29, 2021 1:39 am

Please also set:
Code: Select all  Expand view  RUN
           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
User avatar
nageswaragunupudi
 
Posts: 10646
Joined: Sun Nov 19, 2006 5:22 am
Location: India

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

Postby Joel Andujo » Tue Aug 31, 2021 3:52 pm

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

Regards.
Joel Andujo
User avatar
Joel Andujo
 
Posts: 131
Joined: Fri Oct 07, 2005 3:14 pm
Location: Cd. Obregón, Sonora, México


Return to FiveWin para Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 38 guests