local aCol, aHead, aSize, aJust, aPic
if tucondicion1
aCol:= { "campo1", "campo2", "campo3", ... }
aSize:= { 50, 220, 65, ... }
aHead := { "Codigo", "Nombre", "Domicilio", .. }
aJust := { AL_RIGHT, AL_LEFT, ,.... }
aPic := { "@Z 9999",, ,, }
elseif tucondicion2
aCol:= { "campo10", "campo20" }
aSize:= { 50, 220}
aHead := { "Codigo", "Nombre"}
aJust := { AL_RIGHT, }
aPic := { "@Z 9999", }
elseif tucondicion3
aCol:= { "campo1", "campo3", "campo2", "campo4", ... }
aSize:= { 50, 220, 220, 65, ... }
aHead := { "Codigo", "Domicilio", "Nombre", .. }
aJust := { AL_RIGHT, AL_LEFT, ,.... }
aPic := { "@Z 9999",, ,, }
else
aCol:= { "campo1" }
aSize:= { 220 }
aHead := { "Nombre" }
endif
@ 0, 0 XBROWSE oBrw ;
DATASOURCE oRs ;
COLUMNS aCol ;
HEADERS aHead ;
COLSIZES aSize ;
PICTURE aPic ;
JUSTRIFY aJust ;
LINES CELL AUTOSORT