-
Notifications
You must be signed in to change notification settings - Fork 15
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.
result% = JSArray.IsQBArray ( a )
- The a parameter contains the array variable to test.
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")0
-1
0