Description: Decrition (see: https://help.libreoffice.org/7.6/en-GB/text/sbasic/shared/03090408.html) Stop Statement - Stops the execution of the Basic program. The stop command does not stop at the stop statement, but completely aborts the processing of the Basic program. I would have expected the F8 key continue the execution of the BASIC-program an the next statement, but instead processing starts at the first statement in the sub main. Steps to Reproduce: 1. see sub below example : REM ***** BASIC ***** Sub testing_stop_statement() dim a as string stop a = "... after stop statement" msgbox a end sub 2. execute with F5 or via F8 (single steps) 3. the programm will nver reach the statement a = "... after stop statement" Actual Results: After the stop-statement, the excecuten terminate. Expected Results: The same behavior as on an breakpoint (Key F9). Reproducible: Always User Profile Reset: No Additional Info: It is a bug that also occurs in earlier versions of LibreOffice than 7.6.0.3.
I never saw this »stop« statement in practice, but IMHO it does exactly what the helppage says and what I would expect … NOTABUG!
Sorry - it's a bug! I use the Stop-Statement in MS-Office often to stop the execution of the basic code. So I can checking the value of variable AND can start the single step execution by the F8-Key. This steps are inpossible in LibreOffice Basic, because in LibreOffice, the Stop-Statement work like an finaly ending of the Basic-Programm!