https://bugs.documentfoundation.org/show_bug.cgi?id=156599

Jean-Pierre Ledure <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
     Ever confirmed|0                           |1
             Status|UNCONFIRMED                 |ASSIGNED
           Assignee|[email protected] |[email protected]
                   |desktop.org                 |

--- Comment #10 from Jean-Pierre Ledure <[email protected]> ---
I could reproduce the issue on

Version: 7.6.2.1 (X86_64) / LibreOffice Community
Build ID: 56f7684011345957bbf33a7ee678afaf4d2ba333
CPU threads: 6; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: fr-BE (en_US.UTF-8); UI: en-US
Calc: threaded

and could simulate a correction. It is due to a stack of calls to IsLoaded().
A patch will be issued soon (master and 7.6).

However other errors appear when going further: apparently SQL syntax errors in
the user scripts, but I didn't debug them.

Also, a few recommendations in the use of ScriptForge:
- it is useless to run base.IsLoaded(form) repeatedly inside scripts triggered
by events set in the form. It can only return True.
- the given scripts can probably be simplified and lightened by creating form
instances like in the example in the help:
   In Form events, to invoke the Form service when a form event takes place:
   Sub OnEvent(ByRef poEvent As Object)
       Dim myForm As Object
       Set myForm = CreateScriptService("SFDocuments.FormEvent", poEvent)
       '(...)
   End sub
   (read
https://help.libreoffice.org/master/en-US/text/sbasic/shared/03/sf_form.html?DbPAR=BASIC)

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to