En xbrowse deseo que la col fecha salga asi dd/mm/yyyy pero no consigo hacerlo
[img]
http://ge.tt/1WmryDx2
[/img]
- Code: Select all Expand view RUN
SET DATE FORMAT TO "DD/MM/YYYY"
oCon1:=AbreConexBD()
cSql:= "SELECT codubi, codusu, tipcam, dsctop, numero, facbol, fecha, moneda, totbruto, totdscto,totsub, totigv, total, ng,"
cSql+="numfac, tdafab, ruc, estado from cabguia where left(CODUSU,2)='"+left(codusu,2)+"' and mes = '"+cMes+"' order by numero desc"
lRs:=.f.
TRY
oRs1 := TOleAuto():New( "ADODB.RecordSet" )
WITH OBJECT oRs1
:ActiveConnection := oCon1
:Source := cSql
:CursorLocation := adUseClient
:CursorType := adOpenStatic
:LockType := adLockOptimistic
:Open()
END
lRS := .t.
CATCH oError
MsgStop( oError:Description )
END
xbrNumFormat( "A", .t. )
REDEFINE XBROWSE oBrw ;
DATASOURCE oRs1 ;
COLUMNS "FACBOL","FECHA","NUMERO","NG","MONEDA",;
"TOTBRUTO","TOTDSCTO","TOTSUB","TOTIGV","TOTAL" ;
FIELDSIZES 30,68,54,200,30,85,60,60,60,85 ;
HEADERS ;
"F/B" ;
,"FECHA" ;
,"NUMERO" ;
,"CLIENTE" ;
,"MON." ;
,"T.BRUTO" ;
,"T.DSCTO" ;
,"SUBTOT" ;
,"IGV" ;
,"TOTAL" ;
ID 4001 OF oDlg ;
LINES CELL NOBORDER UPDATE
En management studio se ve asi:
[img]
http://ge.tt/7rMtyDx2
[/img]
Gracias