libreoffice-basic

What is the equivalent syntax of this "$@" from the bash language?


Is there an equivalent of the bash language "$@" in the libreoffice Basic language to pass all the parameters passed to a function, to a variable?

As an example:

Function prova(a, b, c)
    prova = "$@"
End Function

Obviously it doesn't work. How can I solve this problem?
The first line Function prova(a, b, c) should not be changed.


Solution

  • No, LibreOffice Basic doesn't have an equivalent.

    Outside of shell scripting, languages generally don't have this. The only exception I found is JavaScript, which has an arguments object.

    In Python, when the stack trace is available, inspect provides the function parameters, useful for debugging. I mention this because it sounds like you're asking for more powerful features in a LibreOffice macro language, and that's what Python provides.