IsArray Function [Runtime]

From LibreOffice Help
Jump to: navigation, search

Determines if a variable is a data field in an array.

Syntax:

IsArray (Var)

Return value:

Bool

Parameters:

Var: Any variable that you want to test if it is declared as an array. If the variable is an array, then the function returns True, otherwise False is returned.

Error Codes

5 Invalid procedure call

Example:

Sub ExampleIsArray
Dim sDatf(10) As String
    Print isarray(sdatf())
End Sub