FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin para Harbour/xHarbour oTimer:Deactivate()
Posts: 1956
Joined: Fri Oct 07, 2005 07:08 PM
oTimer:Deactivate()
Posted: Wed Sep 20, 2006 09:00 PM
Amigos,

Tengo esto:
   oDlg:= oDlgEnlace( @oBrw, oTextos, oBtns, oBmp )

   //----------( Acci贸n del bot贸n )----------

   oBtns[1]: bAction:={|| oTimer:deactivate() }
   oBtns[2]: bAction:={|| oTimer:activate() }

   ACTIVATE DIALOG oDlg CENTERED ON init (;
      BuildTimer( @oBrw, aConfiguracion, aProductos, aSurtidores, aIdVentas, oTimer, oDlg ),;
      oBrw: SetFocus(),;
      oBrw: ResetBarPos(),;
      oBrw: UpStable(),;
      oBrw: Reset(),;
      oBrw: Refresh(),;
      oBrw: gobottom(),;
      )


Pero cuando se ejecuta y presiono el oBtns[1] o rl oBtns[2] me dice:

Error description: Error BASE/1004 Class: 'LOGICAL' has no exported method: ACTIVATE


Por qu茅? soluci贸n?

Gracias
FWH 21.02
Harbour 3.2.0dev (r2104281802)
Copyright (c) 1999-2021, https://harbour.github.io/
Posts: 1076
Joined: Fri Oct 07, 2005 10:41 PM
Re: oTimer:Deactivate()
Posted: Thu Sep 21, 2006 02:04 AM
Goos,

Parece ser que oTimer no est谩 iniciado, al no iniciarse no hay metodo activate() o deactivate(); hay que checar si se activa el timer o no.

Will Morales

goosfancito wrote:Amigos,

Tengo esto:
   oDlg:= oDlgEnlace( @oBrw, oTextos, oBtns, oBmp )

   //----------( Acci贸n del bot贸n )----------

   oBtns[1]: bAction:={|| oTimer:deactivate() }
   oBtns[2]: bAction:={|| oTimer:activate() }

   ACTIVATE DIALOG oDlg CENTERED ON init (;
      BuildTimer( @oBrw, aConfiguracion, aProductos, aSurtidores, aIdVentas, oTimer, oDlg ),;
      oBrw: SetFocus(),;
      oBrw: ResetBarPos(),;
      oBrw: UpStable(),;
      oBrw: Reset(),;
      oBrw: Refresh(),;
      oBrw: gobottom(),;
      )


Pero cuando se ejecuta y presiono el oBtns[1] o rl oBtns[2] me dice:

Error description: Error BASE/1004 Class: 'LOGICAL' has no exported method: ACTIVATE


Por qu茅? soluci贸n?

Gracias
William, Morales

Saludos



m茅xico.sureste
Posts: 1956
Joined: Fri Oct 07, 2005 07:08 PM
oTimer:Deactivate()
Posted: Thu Sep 21, 2006 05:46 AM
Amigo,

si, el timer esta en funcionamiento, lo activo desde aca:

   ACTIVATE DIALOG oDlg CENTERED ON init (;
      BuildTimer( @oBrw, aConfiguracion, aProductos, aSurtidores, aIdVentas, oTimer, oDlg ),;
      oBrw: SetFocus(),;
      oBrw: ResetBarPos(),;
      oBrw: UpStable(),;
      oBrw: Reset(),;
      oBrw: Refresh(),;
      oBrw: gobottom(),;
      )
FWH 21.02
Harbour 3.2.0dev (r2104281802)
Copyright (c) 1999-2021, https://harbour.github.io/
Posts: 1445
Joined: Mon Oct 10, 2005 02:38 PM
oTimer:Deactivate()
Posted: Thu Sep 21, 2006 06:40 AM
goosfancito wrote:Amigo,

si, el timer esta en funcionamiento, lo activo desde aca:

   ACTIVATE DIALOG oDlg CENTERED ON init (;
      BuildTimer( @oBrw, aConfiguracion, aProductos, aSurtidores, aIdVentas, oTimer, oDlg ),;
      oBrw: SetFocus(),;
      oBrw: ResetBarPos(),;
      oBrw: UpStable(),;
      oBrw: Reset(),;
      oBrw: Refresh(),;
      oBrw: gobottom(),;
      )


Prueba con:

BuildTimer( @oBrw, aConfiguracion, aProductos, aSurtidores, aIdVentas, @oTimer, oDlg )

Saludos
Carlos G.

Un Saludo

Carlos G.



FiveWin 25.12 + Harbour 3.2.0dev (r2502110321), BCC 7.7 Windows 11 Home

Posts: 1956
Joined: Fri Oct 07, 2005 07:08 PM
Re: oTimer:Deactivate()
Posted: Thu Sep 21, 2006 11:46 AM
FiveWiDi wrote:
goosfancito wrote:Amigo,

si, el timer esta en funcionamiento, lo activo desde aca:

   ACTIVATE DIALOG oDlg CENTERED ON init (;
      BuildTimer( @oBrw, aConfiguracion, aProductos, aSurtidores, aIdVentas, oTimer, oDlg ),;
      oBrw: SetFocus(),;
      oBrw: ResetBarPos(),;
      oBrw: UpStable(),;
      oBrw: Reset(),;
      oBrw: Refresh(),;
      oBrw: gobottom(),;
      )


Prueba con:

BuildTimer( @oBrw, aConfiguracion, aProductos, aSurtidores, aIdVentas, @oTimer, oDlg )

Saludos
Carlos G.


Andubo,

Gracias.
FWH 21.02
Harbour 3.2.0dev (r2104281802)
Copyright (c) 1999-2021, https://harbour.github.io/

Continue the discussion