Module
Contents
Index 🔎︎

# Further Statements

Statements that do not belong to any of the other categories are described here.

## Call Statement

Transfers the control of the program to a subroutine, a function, or a DLL procedure.

## Choose Function

Returns a selected value from a list of arguments.

## Declare Statement

Declares and defines a subroutine in a DLL file that you want to execute from LibreOffice Basic.

## End Statement

Ends a procedure or block.

## Exit Statement

Exits a Do...Loop, For...Next, a function, or a subroutine.

## FreeLibrary Function

Releases DLLs that were loaded by a Declare statement. A released DLL is automatically reloaded if one of its functions is called. See also: Declare

## Function Statement

Defines a subroutine that can be used as an expression to determine a return type.

## Rem Statement

Specifies that a program line is a comment.

## Stop Statement

Stops the execution of the Basic program.

## Sub Statement

Definē apakšrutīnu.

## Switch Function

Evaluates a list of arguments, consisting of an expression followed by a value. The Switch function returns a value that is associated with the expression that is passed by this function.

## With Statement

Sets an object as the default object. Unless another object name is declared, all properties and methods refer to the default object until the End With statement is reached.