Tengo un problemita con xbrowse RESUELTO

Tengo un problemita con xbrowse RESUELTO

Postby AIDA » Fri Feb 26, 2010 7:12 am

AQUI ESTA LA SOLUCIÓN :D

viewtopic.php?f=6&t=18221
----------------------------------------------------------------------------
Hola tengo un problemita con xbrowse :?

me sale un error al ejecutar

Error occurred at: 02/26/10, 01:02:08
Error description: Error BASE/1005 Class: 'NIL' has no property: CSORTORDER
Args:
[ 1] = U
[ 2] = U

Stack Calls
===========
Called from: => _CSORTORDER(0)
Called from: .\source\classes\XBROWSE.PRG => TXBROWSE:SETRDD(3719)
Called from: C:\FWH\PROMOTORIA\PRG\TEST2003.PRG => MAIN(804)

que sera nunca me fallo el xbrowse :?:


a si esta mi codiguito :oops:


DEFINE BRUSH oBrush RESOURCE "BLANCOS"
DEFINE BRUSH oBrush1 FILENAME "sea2.bmp"
DEFINE BRUSH oBrush2 RESOURCE "ECHO1"
DEFINE BRUSH oBrush3 RESOURCE "GRAD"

dbselectarea( "autos" )
dbgotop()
autospoliza:=lastrec()
sum AUTOS->pagado to autosvalor
dbgotop()
set index to APELLIDO_P_A,POLIZA_A
oGetN :=space(60)






@ 00,00 XBROWSE oBrwX OF oFld:aDialogs[1] ALIAS "AUTOS" AUTOSORT FASTEDIT FOOTERS LINES CELL ;
HEADERS " Nombre ", " Poliza Autos ", " Inciso ","Pagado ", "Compañia";
FIELDS AUTOS->APELLIDO_P +" "+ ALLTRIM(AUTOS->APELLIDO_M) +" "+ ALLTRIM(AUTOS->NOMBRE) ,;
AUTOS->R_POLIZA ,;
AUTOS->POLIZA ,;
AUTOS->pagado ,;
AUTOS->comp;
COLSIZES 450 , 100 , 100 , 100,400 SIZE 1032,215;
JUSTIFY AL_LEFT,AL_CENTER,AL_CENTER,AL_RIGHT,AL_CENTER;
PICTURES "@!","@!","@!", "999,999,999","@!";
ON CLICK (Sndplaysound("beep1.wav"),getNOM:=ALLTRIM(AUTOS->NOMBRE) +" "+ ALLTRIM(AUTOS->APELLIDO_P) +" "+ ALLTRIM(AUTOS->APELLIDO_M),oGetN:Refresh(),;
getT:=AUTOS->TEL1,oGetT:Refresh(),getT2:=AUTOS->TEL2,oGetT2:Refresh(),getDirec:=ALLTRIM(AUTOS->DIRECCION) +" Col. " + ALLTRIM(AUTOS->COLONIA) +" Cp. " +;
ALLTRIM(AUTOS->cod_postal), oGetDirec:Refresh(),cEmail:=AUTOS->email,aEmail:Refresh(),cPagina:=AUTOS->pagina,aPagina:Refresh(),getCiu:=AUTOS->poblacion,oGetCiu:Refresh(),MEMITO:=AUTOS->comentario,mComments:Refresh(),getPol:=AUTOS->R_Poliza,;
oGetPol:Refresh(),getInc:=AUTOS->poliza,oGetInc:Refresh(),ramo:="AUTOS",oRamos:Refresh(),rFicha:=AUTOS->ficha,oFicha:Refresh(),cFichero:=AUTOS->PDF)
oBrwX:cTooltip :={ "POLIZAS DE AUTOS (C)Copyright 2010 - Por AIDA.", "POLIZARIUM",1,CLR_WHITE,CLR_HBLUE }

oBrwX:l2007 := (.F.)

oBrwX:bClrFooter := { || {CLR_BLUE,CLR_YELLOW} }
oBrwX:bClrHeader := { || {CLR_YELLOW,CLR_HBLUE} }

oBrwX:bClrRowFocus := { || { CLR_BLACK, RGB(185,220,255) } }
oBrwX:nMarqueeStyle := MARQSTYLE_HIGHLROW
oBrwX:bRClicked := { | nRow, nCol | ShowPopup( nRow, nCol, oBrwX ) }
oBrwX:aCols[1]:cSortOrder := 'APELLIDO_P'
oBrwX:aCols[2]:cSortOrder := 'R_POLIZA'

oBrwX:lFastEdit := .t.

oBrwX:bClrStd:= {|| { IIF(AUTOS->CANCELADA="S",Rgb(255,0,0),CLR_BLACK) , IIF(OrdKeyNo()%2=0,Rgb(193,221,255),Rgb(221,245,255)) } }

oBrwX:aCols[ 1 ]:nDataStrAlign:= AL_LEFT

XbrStyles( oBrwX )

oBrwX:lFooter := .T.
AEval( oBrwX:aCols, { |o| o:nEditType := EDIT_GET, o:bOnPostEdit := { |o,u,n| PostEditRDD( o, u, n ) } } )
oBrwX:aCols[ 1 ]:bFooter :={ ||"Total de primas pagadas--->" }
oBrwX:aCols[ 4 ]:bFooter := { || autosvalor }

oBrwX:SetRDD()

oBrwX:lTransparent := .t.
oBrwX:SetBackGround( oBrush )
oBrwX:CreateFromCode()
oBrwX:oclient := oWndD



Saluditos :wink:
Last edited by AIDA on Sun Feb 28, 2010 1:44 am, edited 1 time in total.
Que es mejor que programar? creo que nada :)
Atropellada pero aqui ando :P

I love Fivewin

séʌǝɹ ןɐ ɐʇsǝ opunɯ ǝʇsǝ
User avatar
AIDA
 
Posts: 879
Joined: Fri Jan 12, 2007 8:35 pm

Re: Tengo un problemita con xbrowse

Postby nageswaragunupudi » Fri Feb 26, 2010 12:24 pm

Please remove AUTOSORT in the line
Code: Select all  Expand view
@ 00,00 XBROWSE oBrwX OF oFld:aDialogs[1] ALIAS "AUTOS" AUTOSORT  FASTEDIT

It should be
Code: Select all  Expand view
@ 00,00 XBROWSE oBrwX OF oFld:aDialogs[1] ALIAS "AUTOS" FASTEDIT


Also please remove the lines
Code: Select all  Expand view
oBrwX:SetRDD()

oBrwX:lTransparent := .t.
 
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10622
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: Tengo un problemita con xbrowse

Postby AIDA » Sat Feb 27, 2010 5:52 am

Gracias pero no funciona :cry:


saluditos :(
Que es mejor que programar? creo que nada :)
Atropellada pero aqui ando :P

I love Fivewin

séʌǝɹ ןɐ ɐʇsǝ opunɯ ǝʇsǝ
User avatar
AIDA
 
Posts: 879
Joined: Fri Jan 12, 2007 8:35 pm


Return to FiveWin para Harbour/xHarbour

Who is online

Users browsing this forum: jair and 26 guests