ArrayIncrFilter

ArrayIncrFilter

Postby jbrita » Thu Apr 01, 2021 2:29 pm

Amigo tengo este codigo funciona bien en la busqueda, pero quiero mostrar lo q escribo y no me funciona

REDEFINE FOLDEREX oFld ID 99 OF oDlg ;
PROMPT &vTitulo; //aPrompt;
BITMAPS &vBitmap;
TAB HEIGHT 35 ;
DIALOGS &vDialogo; //aDialogo ;
ON CHANGE (oSumaTotal:=0,oBrw[oFld:nOption]:RefreshFooters(),SumaSubtotal(oBrw,aData,oFld:nOption) );
TOP ALIGN &vFldBmp


For I=1 To Len(oBrw)

REDEFINE XBROWSE oBrw[I] ID 400 ;
HEADERS "Descripcion","Cantidad","Pr.Neto","Sub-Total";
JUSTIFY .F.,.F.,.F.,.F.;
FIELDSIZES 590, 70, 70, 80 ;
PICTURES "@!",'99,999.99','999,999,999','999,999,999' ;
DATASOURCE aData[I] FOOTERS AUTOSORT;
LINES CELL cols{ 1,2,3,4 } OF oFld:aDialogs[ I ]

oBrw[I]:nColDividerStyle := LINESTYLE_BLACK
oBrw[I]:nRowDividerStyle := LINESTYLE_BLACK
oBrw[I]:nMarqueeStyle := MARQSTYLE_HIGHLCELL
oBrw[I]:lFastEdit := .T.
oBrw[I]:nFreeze := 4
oBrw[I]:nHeaderLines := 2
oBrw[I]:lHScroll := .f.
oBrw[I]:lVScroll := .F.
oBrw[I]:bPastEof := {|| NewReg(aData,oBrw,oFld:nOption) }

oBrw[I]:lFooter := .t.
oBrw[I]:nFooterHeight := 35 // Altura del footer
oBrw[I]:lIncrFilter := .T.
oBrw[I]:lSeekWild := .T.
oBrw[I]:nColSel := 1

For n := 1 to Len( oBrw[I]:aCols )
oCol := oBrw[I]:aCols[ n ]
If n == 1
oCol:nEditType := EDIT_GET
oCol:bOnPostEdit := { | oCol, xVal, nKey | If( nKey == VK_RETURN,aData[oFld:nOption][oBrw[oFld:nOption]:nArrayAt,1]:=xVal,) }
oCol:bEditWhen := { || IF(aData[oFld:nOption][oBrw[oFld:nOption]:nArrayAt,6]=0,.T.,.F.) }

ElseIf n == 2
oCol:nEditType := EDIT_GET
oCol:bOnPostEdit := { | oCol, xVal, nKey | If( nKey == VK_RETURN,aData[oFld:nOption][oBrw[oFld:nOption]:nArrayAt,2]:=xVal,) }

ElseIf n == 3
oCol:nEditType := EDIT_GET
oCol:bOnPostEdit := { | oCol, xVal, nKey | If( nKey == VK_RETURN,aData[oFld:nOption][oBrw[oFld:nOption]:nArrayAt,3]:=xVal,) }
oCol:bEditValid := { | oGet, oCol | (CargaPrecio(oGet,oBrw,aData,oFld:nOption)) }
oCol:cFooter := 'Total'
oCol:nFootStrAlign:= AL_CENTER

ElseIf n ==4
oCol:bFooter := { || TRANSFORM( oSumaTotal,"999,999,999") }

Endif
next

oFld:aDialogs[ I ]:bInit := {|| oBrw[I]:aCols[1]:SetOrder(), Eval(oBrw[I]:aCols[1]:bLClickHeader) }

*** ESTO 3 NO ME FUNCIONAN PARA MOSTRAR LO Q BUSCO SE CAE
* @ 20,20 SAY oBrw[I]:oSeek VAR oBrw[I]:cSeek SIZE 150,20 PIXEL OF oDlg COLOR CLR_HRED, CLR_YELLOW UPDATE
* REDEFINE SAY oBrw[oFld:nOption]:oSeek PROMPT oBrw[oFld:nOption]:cSeek ID 103 OF oDlg:aDialogs[ I ] PICTURE "@S60!" UPDATE
* @ 11,150 SAY oBrw[I]:oSeek PROMPT oBrw[I]:cSeek SIZE 200,10 PIXEL OF oFld:aDialogs[ I ] COLOR CLR_BLACK,CLR_YELLOW PICTURE '@!'

Next

Saludos
Last edited by jbrita on Sun Apr 04, 2021 10:53 pm, edited 1 time in total.
jbrita
 
Posts: 504
Joined: Mon Jan 16, 2006 3:42 pm

Re: ArrayIncrFilter

Postby artu01 » Thu Apr 01, 2021 8:18 pm

jbrita wrote:
*** ESTO 3 NO ME FUNCIONAN PARA MOSTRAR LO Q BUSCO SE CAE
* @ 20,20 SAY oBrw[I]:oSeek VAR oBrw[I]:cSeek SIZE 150,20 PIXEL OF oDlg COLOR CLR_HRED, CLR_YELLOW UPDATE
* REDEFINE SAY oBrw[oFld:nOption]:oSeek PROMPT oBrw[oFld:nOption]:cSeek ID 103 OF oDlg:aDialogs[ I ] PICTURE "@S60!" UPDATE
* @ 11,150 SAY oBrw[I]:oSeek PROMPT oBrw[I]:cSeek SIZE 200,10 PIXEL OF oFld:aDialogs[ I ] COLOR CLR_BLACK,CLR_YELLOW PICTURE '@!'

Next

Saludos

Prueba asi
Code: Select all  Expand view  RUN

@ 11,150 SAY oBrw[I]:oSeek VAR oBrw[I]:cSeek SIZE 200,10 PIXEL OF oFld:aDialogs[ I ] COLOR CLR_BLACK,CLR_YELLOW PICTURE '@!'
 
fwh 17.12, harbour 3.2.0, pelles C, bcc7, Ms-Sql
artu01
 
Posts: 400
Joined: Fri May 11, 2007 8:20 pm
Location: Lima

Re: ArrayIncrFilter

Postby jbrita » Sun Apr 04, 2021 10:46 pm

Tampoco asi resulta:

@ 11,150 SAY oBrw[I]:oSeek VAR oBrw[I]:cSeek SIZE 200,10 PIXEL OF oFld:aDialogs[ I ] COLOR CLR_BLACK,CLR_YELLOW PICTURE '@!'

saludos
jbrita
 
Posts: 504
Joined: Mon Jan 16, 2006 3:42 pm


Return to FiveWin para Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 101 guests