FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin para Harbour/xHarbour Combobox y GetEdit, Misma Columna XBROWSE
Posts: 336
Joined: Wed May 16, 2007 09:40 PM
Combobox y GetEdit, Misma Columna XBROWSE
Posted: Fri Mar 14, 2025 06:50 PM
Existe la posibilidad de que en un Xbrowse y en una sola columna convivan los combobox y los get,, ejemplo

GET
GET
GET
COMBOBOX
GET
COMBOBOX
COMBOBOX

y asi sucesivamente en un xbrowse pero en una columna, estaba haciendo algo asi pero no funciona,, lleno un arreglo mixto con get y combobox, pero no resulta,, no se si se puede hacer
do while .not. eof()

 if (odbf1:calias)->tdbf
  acentidad:={}
  dbselectarea(odbf:calias)
  set order to 1
  go top
  do while .not. eof()
   aadd(acentidad,(odbf:calias)->nombre+"-"+(odbf:calias)->codigo)
   skip
  enddo
 else
  acentidad:=""
  acentidad:=(odbf1:calias)->nombre
 endif
 ritem +=1
 AADD(acItem,{ ritem, acentidad })
 
 dbselectarea(odbf1:calias)
 skip
next


 REDEFINE XBROWSE oLbx1 ID 4001 OF oFld:aDialogs[2];
           COLUMNS 1,2;
           HEADERS "Item","Descripcion";
           COLSIZES 40,360;
           PICTURE "","";
           ARRAY acItem UPDATE FOOTERS LINES AUTOCOLS CELL AUTOSORT
Fivewin-Xharbour 24.09, Iquique, Chile
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Combobox y GetEdit, Misma Columna XBROWSE
Posted: Sat Mar 15, 2025 03:22 AM

Estimado Quique,

Revisa FWH\samples\inspect.prg

regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion