Error en dialog

Post Reply
User avatar
fgondi
Posts: 636
Joined: Fri Oct 07, 2005 6:58 am
Location: Palencia, España
Contact:

Error en dialog

Post by fgondi »

Hola foro,

Hay momentos en la actividad del programa en los que ejecuta el siguiente error.

Code: Select all

________________________________________________________________________________

   Error BASE/1.077  Error de argumento: .NOT.

   Argumentos   :
     [   1] = U   
Llamadas al Stack
________________________________________________________________________________

   Called from TDIALOG:END(0)
   Called from (b)ENABLE(550)
   Called from TCONTROL:CLICK(0)
   Called from TWINDOW:KEYCHAR(0)
   Called from TWINDOW:HANDLEEVENT(0)
   Called from TWINDOW:HANDLEEVENT(0)
   Called from _FWH(3126)
   Called from DIALOGBOXINDIRECT(0)
   Called from TDIALOG:ACTIVATE(0)
   Called from MSGRUN(0)
   Called from PS_GETPRECIOSQL(346)
   Called from GETPRECIOS(87)
   Called from PS_SHOW(270)
   Called from (b)ALBCOMPLIN(82)
   Called from TLINDAT:EDIT(511)
   Called from TLINDAT:EJECUTAR(601)
   Called from (b)BUILDCONTROLS(301)
   Called from TLINDAT:KEYDOWN(702)
   Called from (b)NEW(181)
   Called from (b)ACTIVATE(186)
   Called from TWINDOW:KEYDOWN(2392)
   Called from TWINDOW:KEYDOWN(0)
   Called from TWINDOW:KEYDOWN(2400)
   Called from TWINDOW:KEYDOWN(2400)
   Called from TWINDOW:KEYDOWN(0)
   Called from TWINDOW:KEYDOWN(0)
   Called from TWINDOW:HANDLEEVENT(0)
   Called from TWINDOW:HANDLEEVENT(0)
   Called from _FWH(3126)
   Called from WINRUN(0)
   Called from TWINDOW:ACTIVATE(880)
   Called from MAIN(58)
Haber si me pudierais explicar porque que se produce.

Muchas gracias de antemano por vuestro tiempo
Un saludo
Fernando González Diez
ALSIS GHE Sistemas Informáticos
User avatar
jlcapel
Posts: 229
Joined: Wed Oct 12, 2005 5:32 pm
Location: Valencia - España
Contact:

Post by jlcapel »

fgondi,
Called from TDIALOG:END(0)
Called from (b)ENABLE(550)
Called from TCONTROL:CLICK(0)
Revisa el bloque de código que debe haber dentro del ACTION de algún botón del diálogo (el que se haya pulsado).

Saludos,
José Luis Capel
User avatar
fgondi
Posts: 636
Joined: Fri Oct 07, 2005 6:58 am
Location: Palencia, España
Contact:

Post by fgondi »

Jose Luis,

Ante todo gracias por tu respuesta.

fijate que el error se produce al cerrar la ventana que genera msgrun(), eso es lo que no entiendo.

Code: Select all

 Called from TDIALOG:END(0) 
   Called from (b)ENABLE(550) 
   Called from TCONTROL:CLICK(0) 
   Called from TWINDOW:KEYCHAR(0) 
   Called from TWINDOW:HANDLEEVENT(0) 
   Called from TWINDOW:HANDLEEVENT(0) 
   Called from _FWH(3126) 
   Called from DIALOGBOXINDIRECT(0) 
   Called from TDIALOG:ACTIVATE(0) 
   Called from MSGRUN(0) 
Lo que no sé es si el click() pertenece a algún botón de la ventana que hay por detras del mensaje msgrun() y como evitarlo, ya que no debería permitir la pulsación de dichos botones, aunque sea a traves de pulsación rapida (KeyDown, KeyChar, etc.)
Un saludo
Fernando González Diez
ALSIS GHE Sistemas Informáticos
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Fernando,

Prueba a deshabilitar la ventana principal, antes de llamar a MsgRun():

Code: Select all

   oWnd:Disable()
   MsgRun( ... )
   oWnd:Enable()
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
fgondi
Posts: 636
Joined: Fri Oct 07, 2005 6:58 am
Location: Palencia, España
Contact:

Post by fgondi »

Antonio.

Gracias. En eso no había caido, seguramente se solucione. Lo probaré
Un saludo
Fernando González Diez
ALSIS GHE Sistemas Informáticos
Post Reply