Ver Mensaje Individual
  #2
Antiguo 25 de junio de 2024, 20:21
Kuk
Administrador
Última Actividad 21.09.2026 18:24
Posts Posts: 2.500
Likes enviados Enviados: 1037
Likes recibidos Recibidos: 1207

@Josber, se me ocurre algo así:

En la Working Global:
Código COBOL:
  1.  01  GLB-CANCEL        PIC X(1).

En el evento "Click" del botón Cancelar:
Código COBOL:
  1.      MOVE "S" TO GLB-CANCEL

En tu bucle haces lo siguiente:
Código COBOL:
  1.      MOVE "N" TO GLB-CANCEL
  2.      
  3.      PERFORM UNTIL ... OR GLB-CANCEL NOT = "N"
  4.         *> tratamiento existente          
  5.  
  6.          INVOKE POW-SELF "ThruEvents" *> IMPORTANTE! Si no lo haces, el botón Cancelar estará bloqueado, vamos, todo el Form
  7.      END-PERFORM
  8.      
  9.      IF  GLB-CANCEL NOT = "N"
  10.          INVOKE POW-SELF "DisplayMessage" USING "El proceso ha sido cancelado." 48
  11.      
  12.      ELSE
  13.         *> Tratamiento actual
  14.      END-IF    



NORMAS DEL FORO - para garantizar el buen funcionamiento del Foro.
¿Te han ayudado? NO TE OLVIDES de darle a
¿Quieres dirigirte a alguien en tu post? Notifícale haciendo clic en su Nick
Kuk is offline   Responder Con Cita