Gracias, pero no va, la serie son números pares: 2, 4, 6, etc.
Ejemplo:
- Code: Select all Expand view
// More reports...
#include "FiveWin.ch"
#include "report.ch"
STATIC oReport, oDlg
Function Main()
USE Customer ALIAS Test
myReport()
RETURN NIL
//----------------------------------------------------------------------------//
Function myReport()
LOCAL oFont1, oFont2, oFont3, oBmp, oPen1, oPen2
local nfila := 1
DEFINE FONT oFont1 NAME "ARIAL" SIZE 0,-10
DEFINE FONT oFont2 NAME "ARIAL" SIZE 0,-10 BOLD
DEFINE FONT oFont3 NAME "ARIAL" SIZE 0,-10 BOLD ITALIC
DEFINE PEN oPen1 WIDTH 5
DEFINE PEN oPen2 WIDTH 2
GO TOP
REPORT oReport ;
TITLE "*** LISTADO DE PRUEBA ***",;
"",;
OemtoAnsi("FiveTech Software"),;
"" ;
FONT oFont1,;
oFont2,;
oFont3 ;
PEN oPen1,;
oPen2 ;
HEADER "Fecha: "+dtoc(date()),;
"Hora: "+time() ;
RIGHT ;
FOOTER OemtoAnsi("P gina: ")+str(oReport:nPage,3) ;
CENTERED ;
PREVIEW
COLUMN TITLE "Fila" DATA AllTrim( Str( nFila++ ) )
COLUMN TITLE "ST" ;
DATA Test->State ;
FONT 2
COLUMN TITLE "City" ;
DATA Test->City
COLUMN TITLE "First Name","Last Name" ;
DATA Test->First, Test->Last
COLUMN TITLE " Salary" ;
DATA Test->Salary ;
PICTURE "9,999,999" ;
SIZE 9 ;
TOTAL ;
SHADOW ;
GRID 2
END REPORT
ACTIVATE REPORT oReport
RETURN NIL