Cambiar la ordem pelo Header da xbrowse ???

Cambiar la ordem pelo Header da xbrowse ???

Postby Ale SB » Thu Jun 19, 2008 7:30 pm

Usando el SetRdd asi, no cambia los Header ??
oBrw:SetRDD(.F.,.T.)
Porque ?

Code: Select all  Expand view  RUN
oBrw := TXBrowse():New( oDlg )     
            oBrw:CreateFromResource( 102 )  //--> Chamada ao Resource Browse.
            oBrw:cAlias              := (oDbfPlan:cAlias())
            oBrw:SetRDD(.F.,.T.)                                         
   *****---   Colunas ---*****     
   //--> Planilha
   oCol:= oBrw:AddCol()
   oCol:bStrData := { || (oDbfPlan:cAlias())->APlanPln }
   oCol:cHeader := "Planilha"   
   //--> Data Contrato   
   oCol:= oBrw:AddCol()
   oCol:bStrData := { || (oDbfPlan:cAlias())->(DtoC(ADtEvPln)) }
   oCol:cHeader := "Data"


Usando asi

oBrw:SetRDD(.T.,.T.)

Funciona.

Saludos, Ale
aleseribeli@hotmail.com

FwH, Hb Svn, ADS 8.1, ADS 10, Pelles C, FwPPC, MsVc 2008, MsVc 2010
"Conhecimento, você não subtrai quando divide; mas soma e multiplica."
**---Mário Persona---**
User avatar
Ale SB
 
Posts: 248
Joined: Wed Jan 11, 2006 11:30 am
Location: Campo Grande-MS / Brasil

Postby Ale SB » Wed Jul 16, 2008 1:24 pm

UP !!
aleseribeli@hotmail.com

FwH, Hb Svn, ADS 8.1, ADS 10, Pelles C, FwPPC, MsVc 2008, MsVc 2010
"Conhecimento, você não subtrai quando divide; mas soma e multiplica."
**---Mário Persona---**
User avatar
Ale SB
 
Posts: 248
Joined: Wed Jan 11, 2006 11:30 am
Location: Campo Grande-MS / Brasil

Postby Antonio Linares » Wed Jul 16, 2008 4:32 pm

Ale,

Para cambiar los nombres de las cabeceras de las columnas has de usar el tercer parámetro:

METHOD SetRDD( lAddColumns, lAutoOrder, aFldNames ) CLASS TXBrowse
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42161
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain


Return to FiveWin para Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 56 guests