Sr. Manuel, ao clicar duas vezes em cima do SUPER HEADER, e digitar um digito ex: 1, acontece o seguinte erro:
Error description: Error BASE/1102 Argument error: UPPER
Args:
[ 1] = N 1
Stack Calls
===========
Called from: => UPPER(0)
Called from: TSBROWSE.PRG => LASEEK(10635)
Called from: TSBROWSE.PRG => TSBROWSE:SEEK(8874)
Called from: TSBROWSE.PRG => TSBROWSE:KEYCHAR(5340)
Called from: => TWINDOW:HANDLEEVENT(0)
Called from: control.prg => TCONTROL:HANDLEEVENT(1414)
Called from: TSBROWSE.PRG => TSBROWSE:HANDLEEVENT(6138)
Called from: window.prg => _FWH(3252)
Called from: => DIALOGBOX(0)
Called from: DIALOG.PRG => TDIALOG:ACTIVATE(0)
Called from: cxturno.prg => FWHCXTURNO(109)
Fonte:
acaixas:={{"","","","","","",""}}
DEFINE DIALOG oDlg RESOURCE "CAIXATURNO" FONT ownd:ofont ICON OICO
REDEFINE BROWSE oBrw2 ID 4016 OF oDlg COLOR CLR_BLACK,CLR_LGREEN
obRW2:lNoVScroll := .F. //Tem que estar aqui
obRW2:lNoHScroll := .T. //Tem que estar aqui
obRW2:setArray(acaixas)
obRW2:Refresh()
obRW2:nHeightCell := 24
obRW2:nHeightHead := 24
obRW2:nHeightFoot := 24
obRW2:nHeightSuper:= 29
obRW2:lMChange := .F.
obRW2:lDrawHeaders:= .T.
obRW2:lFooting := .T.
obRW2:lNoMoveCols := .T.
**obRW2:bchange := {|| }
**obRW2:bKeyDown := {|nKey| }
**oBrw2:bOnEscape := {|| oWndChild:end() }
bColor := {|| If(oBrw2:nLogicPos() % 2 = 0,CLR_LGRAY,CLR_LGREEN) }
obRW2:SetColor( { 1, 3, 4, 5, 6, 9, 10, 13, 15, 11, 12 }, ;
{ CLR_BLACK,;
CLR_BLACK,;
nRGB(211, 227, 247),;
CLR_WHITE,;
CLR_HBLUE,;
CLR_BLACK,;
nRGB(211, 227, 247),;
CLR_WHITE,;
CLR_BLACK,;
CLR_WHITE,;
CLR_HBBLUE } )
ADD COLUMN TO BROWSE obRW2 DATA ARRAY ELEMENT 1;
TITLE "Seq.";
SIZE 40 ;
COLORS CLR_BLACK,bColor;
3DLOOK TRUE;
ALIGN DT_CENTER,DT_CENTER
ADD COLUMN TO BROWSE obRW2 DATA ARRAY ELEMENT 2;
TITLE "Usuário";
SIZE 100 ;
COLORS CLR_BLACK,bColor;
3DLOOK TRUE;
ALIGN DT_LEFT,DT_LEFT,DT_LEFT
ADD COLUMN TO BROWSE obRW2 DATA ARRAY ELEMENT 3;
TITLE "Data Caixa";
SIZE 95 ;
COLORS CLR_BLACK,bColor;
3DLOOK TRUE;
ALIGN DT_CENTER,DT_CENTER,DT_CENTER
ADD COLUMN TO BROWSE obRW2 DATA ARRAY ELEMENT 4;
TITLE "Turno";
SIZE 100 ;
COLORS CLR_BLACK,bColor;
3DLOOK TRUE;
ALIGN DT_CENTER,DT_CENTER,DT_RIGHT;
FOOTER "Total:"
ADD COLUMN TO BROWSE obRW2 DATA ARRAY ELEMENT 5;
TITLE "Valor Turno";
SIZE 80 ;
COLORS CLR_BLACK,bColor;
3DLOOK TRUE;
ALIGN DT_RIGHT,DT_RIGHT,DT_RIGHT
ADD COLUMN TO BROWSE obRW2 DATA ARRAY ELEMENT 6;
TITLE "Total do Dia";
SIZE 80 ;
COLORS CLR_BLACK,bColor;
3DLOOK TRUE;
ALIGN DT_RIGHT,DT_RIGHT,DT_RIGHT
ADD COLUMN TO BROWSE obRW2 DATA ARRAY ELEMENT 7;
TITLE "S";
SIZE 35 ;
COLORS CLR_BLACK,bColor;
3DLOOK TRUE;
ALIGN DT_CENTER,DT_CENTER,DT_CENTER
ADD SUPER HEADER TO oBrw2 FROM COLUMN 1 TO COLUMN 7 TITLE "Caixa: "+DTOC(m->hoje) 3DLOOK
Obrigado