Functions (LibreOffice Basic)
Naar navigatie springen
Naar zoeken springen
Function definition
function hello_world() MsgBox("Hello, world!") end function
Function call
- You can call a function with only the name of the function - No additional command needed
- If the function doesn't use arguments, you don't need to use brackets.
Arguments
In LibreOffice Basic, you are not required to declare the data type of function arguments, but you can specify types if desired. LibreOffice Basic is a loosely typed language by default, meaning it allows flexibility in handling data types. However, declaring argument types can improve code clarity, reduce errors, and enhance performance.