Error description: Error BASE/1112 Argument error: YEAR
Args:
[ 1] = C 19/02/2014
Stack Calls
===========
Called from: => YEAR( 0 )
Called from: .\source\classes\TDTPICKE.PRG => (b)TDATEPICK( 42 )
Called from: .\source\classes\TDTPICKE.PRG => TDATEPICK:SETDATE( 0 )
Called from: .\source\classes\TDTPICKE.PRG => TDATEPICK:_CTEXT( 205 )
Called from: .\source\classes\TDTPICKE.PRG => TDATEPICK:NEW( 109 )
Called from: .\source\classes\XBROWSE.PRG => TXBRWCOLUMN:EDITDATETIME( 14017 )
Called from: .\source\classes\XBROWSE.PRG => TXBRWCOLUMN:EDIT( 13711 )
Called from: .\source\classes\XBROWSE.PRG => TXBROWSE:LDBLCLICK( 4725 )
#include "fivewin.ch"
#include "constant.ch"
Function Main()
//ico
// tipo
// servizio
// quantità
// costo
// totale
// dal
// al
// gg
// sconto
// totale
local oDlg, oBrw, oLarge, oFont
Local aData:={ {"O","L","Ombrellone",1,10.00,10.00,"19/02/2014","19/02/2014",1,0.00,10.00},;
{"S","L","Sdraio",1,5.00,5.00,"19/02/2014","19/02/2014",2,0.00,10.00},;
{"L","L","Lettino",1,5.00,5.00,"19/02/2014","19/02/2014",2,0.00,10.00},;
{"R","L","Regista",1,5.00,5.00,"19/02/2014","19/02/2014",1,0.00,5.00} }
DEFINE FONT oLarge NAME "VERDANA" SIZE 0,-48 BOLD
DEFINE FONT oFont NAME "TAHOMA" SIZE 0,-15
DEFINE DIALOG oDlg SIZE 800,260 PIXEL TRUEPIXEL FONT oFont ;
TITLE "Testing date"
@0,0 XBROWSE oBrw SIZE -20,200 PIXEL OF oDlg;
COLUMNS 1,2,3,4,5,6,7,8,9,10,11 ;
HEADERS "Ico","Type","Item Name","Qt.", "Amount","Total","From","To","Days""Descount","Total";
ARRAY aData CELL LINES FOOTERS NOBORDER FASTEDIT
oBrw:ItemName:cFooter:="Total"
WITH OBJECT oBrw:Amount
:nEditType := EDIT_GET
:cEditPicture := '@ €99,999.99'
:lTotal:=.T.
:nTotal:=0.00
END
WITH OBJECT oBrw:From
:nEditType := EDIT_DATE
END
WITH OBJECT oBrw:TO
:nEditType := EDIT_DATE
END
oBrw:MakeTotals()
oBrw:nStretchCol := STRETCHCOL_WIDEST
oBrw:CreateFromCode()
ACTIVATE DIALOG oDlg CENTERED
Return
local aData:={ {"O","L","Ombrellone",1,10.00,10.00,{^ 2014/02/19 },{^ 2014/02/19 },1,0.00,10.00},;
{"S","L","Sdraio",1,5.00,5.00,{^ 2014/02/19 },{^ 2014/02/19 },2,0.00,10.00},;
{"L","L","Lettino",1,5.00,5.00,{^ 2014/02/19 },{^ 2014/02/19 },2,0.00,10.00},;
{"R","L","Regista",1,5.00,5.00,{^ 2014/02/19 },{^ 2014/02/19 },1,0.00,5.00} }
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: No registered users and 88 guests