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
Please give a try to LO 7.4.5 and comment in English.
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"
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!
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