Problema con la OGET:CHANGED

Problema con la OGET:CHANGED

Postby jbrita » Mon Jul 28, 2008 12:17 am

Porque este combobox :

REDEFINE COMBOBOX aGets[9] VAR oMa_Exento ITEMS mexento ID 104 OF oFld:aDialogs[ 1 ] UPDATE

cuando pregunto en esta funcion si cambio:
If aGets[9]:oGet:changed
cambio:=.T.
Endif

me da este errors:
Error description: Error BASE/1004 Message not found: TGET:CHANGED

Stack Calls
===========
Called from: tobject.prg => TGET:ERROR(172)
Called from: tobject.prg => TGET:MSGNOTFOUND(205)
Called from: tobject.prg => TGET:CHANGED(0)

desde ya gracias
jbrita
 
Posts: 502
Joined: Mon Jan 16, 2006 3:42 pm

Postby quique » Mon Jul 28, 2008 12:21 am

Porque la clase tCombobox (ni la clase tGet) tiene la variable de instancia changed
Saludos
Quique
User avatar
quique
 
Posts: 408
Joined: Sun Aug 13, 2006 5:38 am

Postby Antonio Linares » Mon Jul 28, 2008 12:22 am

Prueba asi:

If aGets[9]:oGet:oGet:changed
regards, saludos

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

Postby jbrita » Mon Jul 28, 2008 12:38 am

asi:
If aGets[9]:oGet:oGet:changed
cambio:=.t.
Endif

me da siempre .F.

Saludos
jbrita
 
Posts: 502
Joined: Mon Jan 16, 2006 3:42 pm

Re: Problema con la OGET:CHANGED

Postby mmercado » Mon Jul 28, 2008 3:42 am

jbrita wrote:Porque este combobox :

REDEFINE COMBOBOX aGets[9] VAR oMa_Exento ITEMS mexento ID 104 OF oFld:aDialogs[ 1 ] UPDATE

cuando pregunto en esta funcion si cambio:
If aGets[9]:oGet:changed
cambio:=.T.
Endif
Y por qué no hacerlo así:
Code: Select all  Expand view
   REDEFINE COMBOBOX aGets[9] VAR oMa_Exento  ITEMS mexento   ID 104 OF oFld:aDialogs[ 1 ] UPDATE ;
   ON CHANGE Cambio := .T.
Saludos.

Manuel Mercado
User avatar
mmercado
 
Posts: 782
Joined: Wed Dec 19, 2007 7:50 am
Location: Salamanca, Gto., México


Return to FiveWin para Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 39 guests