Bug 156930 - LibreOffice - Calc - Basic - Stop Statement
Summary: LibreOffice - Calc - Basic - Stop Statement
Status: RESOLVED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: BASIC (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-08-26 11:56 UTC by mikeho
Modified: 2023-08-28 09:33 UTC (History)
0 users

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 mikeho 2023-08-26 11:56:45 UTC
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.
Comment 1 Werner Tietz 2023-08-27 05:17:18 UTC
I never saw this »stop« statement in practice, but IMHO it does exactly what the helppage says and what I would expect …

NOTABUG!
Comment 2 mikeho 2023-08-28 09:33:03 UTC
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!