Skip to content

JSArray.IsQBArray

boxgaming edited this page Jul 25, 2026 · 2 revisions

Detects whether the specified variable is a QBasic array.
The result is returned as a QBasic-style boolean: 0 for False, -1 for True.

Syntax

result% = JSArray.IsQBArray ( a )

Parameters

  • The a parameter contains the array variable to test.

Example

Import JSArray From "lib/lang/array.bas"

Dim animals As Object
animals = JSArray.Create("ant", "bison", "camel", "duck", "elephant")

Dim vegetables(3) As String
vegetables(1) = "lettuce"
vegetables(2) = "cabbage"
vegetables(3) = "kale"

Print JSArray.IsQBArray(animals)
Print JSArray.IsQBArray(vegetables)
Print JSArray.IsQBArray("string of text")

Output

0
-1
0

See Also

JSArray.Create
JSArray.IsJSArray
JSArray.ToQBArray

Clone this wiki locally