WBrowse + Array = Error
Posted: Mon Apr 28, 2008 2:20 pm
When update my WBrowse with array generate this error:
Part of the source code:
What is this??
Help-me, please
Code: Select all
Called from: DlgRecebimento.PRG => (b)SHOWRECEBIMENTO(96)
Called from: wbrowse.prg => TWBROWSE:SKIP(1583)
Called from: wbrowse.prg => TWBROWSE:PAINT(703)
Called from: wbrowse.prg => TWBROWSE:DISPLAY(2038)
Called from: CONTROL.PRG => TWBROWSE:HANDLEEVENT(0)
Called from: WINDOW.PRG => _FWH(0)
Called from: => SYSREFRESH(0)
Called from: CONTROL.PRG => TWBROWSE:KEYCHAR(0)
Called from: => TWINDOW:HANDLEEVENT(0)
Called from: CONTROL.PRG => TWBROWSE:HANDLEEVENT(0)
Called from: WINDOW.PRG => _FWH(0)
Called from: => SYSREFRESH(0)
Called from: DIALOG.PRG => TDIALOG:END(0)
Code: Select all
(076) Redefine LISTBOX oBrw ;
(077) FIELDS oRecto:aTitulos[oBrw:nAt]:dEmissao, ;
(078) oRecto:aTitulos[oBrw:nAt]:dVencimento,;
(079) oRecto:aTitulos[oBrw:nAt]:cIdTitulo, ;
(080) oRecto:aTitulos[oBrw:nAt]:cRetirado, ;
(081) Str(oRecto:aTitulos[oBrw:nAt]:nValorJuros),;
(082) Str(oRecto:aTitulos[oBrw:nAt]:nValorPago) ;
(083) HEADERS "Emissão","Vencimento","Título", ;
(084) "Retirado por","Valor","Valor pago" ;
(085) Sizes 090,090,090,240,100,100 ;
(086) ID 301 ;
(087) Font oFnt ;
(088) OF oDlg
(089)
(090) oBrw:nAt := 1
(091) oBrw:bGoTop := {|| oBrw:nAt := 1 }
(092) oBrw:bGoBottom := {|| oBrw:nAt := Eval( oBrw:bLogicLen ) }
(093) oBrw:bSkip := {| nWant, nOld | nOld := oBrw:nAt, oBrw:nAt += nWant,;
(094) oBrw:nAt := Max( 1, Min( oBrw:nAt,;
(094) Eval( oBrw:bLogicLen ) ) ) ,;
(095) oBrw:nAt - nOld }
(096) oBrw:bLogicLen := {|| Len( oRecto:aTitulos) } // <<==
(097) oBrw:aJustify := {.f.,.f.,.f.,.f.,.t.,.t.}
(098) oBrw:nClrPane := {|| ClrPaneBrw() }
(099) oBrw:blDblClick := {| nRow, nCol | BtnClickMarcar() }
Help-me, please