Bug 153455 - Bucle infinito en suceso (al ejecutar macro) "Recepción de foco"
Summary: Bucle infinito en suceso (al ejecutar macro) "Recepción de foco"
Status: RESOLVED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Base (show other bugs)
Version:
(earliest affected)
7.3.2.2 release
Hardware: x86-64 (AMD64) Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-02-08 01:33 UTC by ramon6419
Modified: 2023-02-11 00:30 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ramon6419 2023-02-08 01:33:06 UTC
Description:
En base datos cuando se ejecuta el suceso "Recepción de foco",  asignado a un campo de un formulario, y la macro tiene que mostrar un Msgbox, se produce un bucle infinito
Libre Office Version 7.3.2.2. en Windows x64

Steps to Reproduce:
1.Asignar el suceso(macro) "Recepción de foco" a un campo de base datos.
2.Dentro de la macro incluir un Msgbox
3.Ejecutar la macro y se produce un bucle infinito

Actual Results:
Se produce un bucle infinito

Expected Results:
Mostrar el Msgbox y continuar ejecutando la macro


Reproducible: Always


User Profile Reset: No

Additional Info:
Version: 7.3.2.2(x64)
Montaje: 49f2b1bff42cfccbd8f788c8d
Subprocs. CPU: 4; SO: ´windows 10.0
Comment 1 Julien Nabet 2023-02-08 07:57:31 UTC
Please give a try to LO 7.4.5 and comment in English.
Comment 2 Robert Großkopf 2023-02-09 10:47:32 UTC
I try it in English:
When setting a macro to event "When receiving focus" and and in the macro is output of a message box you will get a loop.

That's the right behavior, because the cursor gets the focus again after pressing OK of a message box. So it would be better to write the output in a form control, not to create a dialog for it, which set the cursor to the dialog and then back to the form field, which is receiving the focus again.

I would prefer to set this one as "NOTABUG"
Comment 3 Stéphane Guillou (stragu) 2023-02-09 14:07:28 UTC
Ramón, Robert explicó que quizás ese bucle es normal por el diseño de la macro. Quizás sería mejor discutir en el foro en español? https://ask.libreoffice.org/c/spanish/10
Voy a marcar esto como "not a bug" pero dinos si no estas de acuerdo. En este caso, por favor prueba una version mas reciente (como 7.4) y adjunta un ejemplo aquí con el botón "Add an attachment".
Gracias!

--- in English:

Ramón, Robert explained that maybe this loop is normal given the design of the macro. Maybe it would be better to discuss in the Spanish-language forum: https://ask.libreoffice.org/c/spanish/10
I'm resolving this report as "not a bug" but please tell us if you disagree. In that case, please try a more recent version (like 7.4) and attach an example file for us to test.
Thanks!
Comment 4 ramon6419 2023-02-11 00:30:26 UTC
Creo que lo correcto sería pulsar aceptar sobre el Msgbox, el cursor volvería a su origen pero que no activara una segunda vez 
la macro, es decir la macro tiene que activarse una sola vez con el suceso "Recibir foco"

Muchas gracias por su atención