OpenDBC
Menu

Arrays, stacks & queues

DBPro commands for dynamic array, stack and queue manipulation.

20 entries — 19 implemented in OpenDBC (95%), 0 compatibility stubs.

Type and status legend

ADD TO QUEUE dbproCommand

Compatibility: dbpro

DarkBASIC Professional command implemented with an observable contract.

Implemented in OpenDBC
ADD TO QUEUE Array1()

Typed signature: any array → void

Parameters

ParameterTypeNotes
Array1()any arraywhole array (() marker)

Example generated example

rem ADD TO QUEUE — generated example
add to queue myarray()

Source: dbpro_reference.md:35

ADD TO STACK dbproCommand

Compatibility: dbpro

DarkBASIC Professional command implemented with an observable contract.

Implemented in OpenDBC
ADD TO STACK Array1()

Typed signature: any array → void

Parameters

ParameterTypeNotes
Array1()any arraywhole array (() marker)

Example generated example

rem ADD TO STACK — generated example
add to stack myarray()

Source: dbpro_reference.md:36

ARRAY COUNT dbproFunction

Compatibility: dbpro

DarkBASIC Professional function implemented with an observable contract.

Implemented in OpenDBC
Result = ARRAY COUNT(Array1())

Typed signature: any array → integer

Parameters

ParameterTypeNotes
Array1()any arraywhole array (() marker)

Return value: integer

Example generated example

rem ARRAY COUNT — generated example
result = array count(myarray())
print result

Source: dbpro_reference.md:1542

ARRAY DELETE ELEMENT dbproCommand

Compatibility: dbpro

DarkBASIC Professional command implemented with an observable contract.

Implemented in OpenDBC
ARRAY DELETE ELEMENT Array1(), [Number2]

Typed signature: any array, number → void

Parameters

ParameterTypeNotes
Array1()any arraywhole array (() marker)
Number2numberoptional

Example generated example

rem ARRAY DELETE ELEMENT — generated example
array delete element myarray(), 1

Source: dbpro_reference.md:50

ARRAY INDEX TO BOTTOM dbproCommand

Compatibility: dbpro

DarkBASIC Professional command implemented with an observable contract.

Implemented in OpenDBC
ARRAY INDEX TO BOTTOM Array1()

Typed signature: any array → void

Parameters

ParameterTypeNotes
Array1()any arraywhole array (() marker)

Example generated example

rem ARRAY INDEX TO BOTTOM — generated example
array index to bottom myarray()

Source: dbpro_reference.md:51

ARRAY INDEX TO QUEUE dbproCommand

Compatibility: dbpro

DarkBASIC Professional command implemented with an observable contract.

Implemented in OpenDBC
ARRAY INDEX TO QUEUE Array1()

Typed signature: any array → void

Parameters

ParameterTypeNotes
Array1()any arraywhole array (() marker)

Example generated example

rem ARRAY INDEX TO QUEUE — generated example
array index to queue myarray()

Source: dbpro_reference.md:52

ARRAY INDEX TO STACK dbproCommand

Compatibility: dbpro

DarkBASIC Professional command implemented with an observable contract.

Implemented in OpenDBC
ARRAY INDEX TO STACK Array1()

Typed signature: any array → void

Parameters

ParameterTypeNotes
Array1()any arraywhole array (() marker)

Example generated example

rem ARRAY INDEX TO STACK — generated example
array index to stack myarray()

Source: dbpro_reference.md:53

ARRAY INDEX TO TOP dbproCommand

Compatibility: dbpro

DarkBASIC Professional command implemented with an observable contract.

Implemented in OpenDBC
ARRAY INDEX TO TOP Array1()

Typed signature: any array → void

Parameters

ParameterTypeNotes
Array1()any arraywhole array (() marker)

Example generated example

rem ARRAY INDEX TO TOP — generated example
array index to top myarray()

Source: dbpro_reference.md:54

ARRAY INDEX VALID dbproFunction

Compatibility: dbpro

DarkBASIC Professional function implemented with an observable contract.

Implemented in OpenDBC
Result = ARRAY INDEX VALID(Array1())

Typed signature: any array → integer

Parameters

ParameterTypeNotes
Array1()any arraywhole array (() marker)

Return value: integer

Example generated example

rem ARRAY INDEX VALID — generated example
result = array index valid(myarray())
print result

Source: dbpro_reference.md:1543

ARRAY INSERT AT BOTTOM dbproCommand

Compatibility: dbpro

DarkBASIC Professional command implemented with an observable contract.

Implemented in OpenDBC
ARRAY INSERT AT BOTTOM Array1(), [Number2]

Typed signature: any array, number → void

Parameters

ParameterTypeNotes
Array1()any arraywhole array (() marker)
Number2numberoptional

Example generated example

rem ARRAY INSERT AT BOTTOM — generated example
array insert at bottom myarray(), 1

Source: dbpro_reference.md:55

ARRAY INSERT AT ELEMENT dbproCommand

Compatibility: dbpro

DarkBASIC Professional command implemented with an observable contract.

Implemented in OpenDBC
ARRAY INSERT AT ELEMENT Array1(), Number2

Typed signature: any array, number → void

Parameters

ParameterTypeNotes
Array1()any arraywhole array (() marker)
Number2number—

Example generated example

rem ARRAY INSERT AT ELEMENT — generated example
array insert at element myarray(), 1

Source: dbpro_reference.md:56

ARRAY INSERT AT TOP dbproCommand

Compatibility: dbpro

DarkBASIC Professional command implemented with an observable contract.

Implemented in OpenDBC
ARRAY INSERT AT TOP Array1(), [Number2]

Typed signature: any array, number → void

Parameters

ParameterTypeNotes
Array1()any arraywhole array (() marker)
Number2numberoptional

Example generated example

rem ARRAY INSERT AT TOP — generated example
array insert at top myarray(), 1

Source: dbpro_reference.md:57

EMPTY ARRAY dbproCommand

Compatibility: dbpro

DarkBASIC Professional command implemented with an observable contract.

Implemented in OpenDBC
EMPTY ARRAY Array1()

Typed signature: any array → void

Parameters

ParameterTypeNotes
Array1()any arraywhole array (() marker)

Example generated example

rem EMPTY ARRAY — generated example
empty array myarray()

Source: dbpro_reference.md:221

GET ARRAY TYPE dbproFunction

Compatibility: dbpro

Historical DarkBASIC Professional function recognized for a stable unsupported diagnostic.

Not implemented (recognized, DBC2043 diagnostic)
Result = GET ARRAY TYPE(Number1)

Typed signature: number → real

Parameters

ParameterTypeNotes
Number1number—

Return value: real

Example generated example

rem GET ARRAY TYPE — generated example
result = get array type(1)
print result

Source: dbpro_reference.md:1667

LOAD ARRAY dbcdbproCommand

Compatibility: dbc and dbpro

Shared DarkBASIC Classic and Professional callable with the same signature and OpenDBC support state.

Implemented in OpenDBC
LOAD ARRAY String1$, Array2()

Typed signature: string, any array → void

Parameters

ParameterTypeNotes
String1$string—
Array2()any arraywhole array (() marker)

Example generated example

rem LOAD ARRAY — generated example
load array "media/file.dat", myarray()

Source: darkbasic_reference.md:151; dbpro_reference.md:353

NEXT ARRAY INDEX dbproCommand

Compatibility: dbpro

DarkBASIC Professional command implemented with an observable contract.

Implemented in OpenDBC
NEXT ARRAY INDEX Array1()

Typed signature: any array → void

Parameters

ParameterTypeNotes
Array1()any arraywhole array (() marker)

Example generated example

rem NEXT ARRAY INDEX — generated example
next array index myarray()

Source: dbpro_reference.md:494

PREVIOUS ARRAY INDEX dbproCommand

Compatibility: dbpro

DarkBASIC Professional command implemented with an observable contract.

Implemented in OpenDBC
PREVIOUS ARRAY INDEX Array1()

Typed signature: any array → void

Parameters

ParameterTypeNotes
Array1()any arraywhole array (() marker)

Example generated example

rem PREVIOUS ARRAY INDEX — generated example
previous array index myarray()

Source: dbpro_reference.md:923

REMOVE FROM QUEUE dbproCommand

Compatibility: dbpro

DarkBASIC Professional command implemented with an observable contract.

Implemented in OpenDBC
REMOVE FROM QUEUE Array1()

Typed signature: any array → void

Parameters

ParameterTypeNotes
Array1()any arraywhole array (() marker)

Example generated example

rem REMOVE FROM QUEUE — generated example
remove from queue myarray()

Source: dbpro_reference.md:971

REMOVE FROM STACK dbproCommand

Compatibility: dbpro

DarkBASIC Professional command implemented with an observable contract.

Implemented in OpenDBC
REMOVE FROM STACK Array1()

Typed signature: any array → void

Parameters

ParameterTypeNotes
Array1()any arraywhole array (() marker)

Example generated example

rem REMOVE FROM STACK — generated example
remove from stack myarray()

Source: dbpro_reference.md:972

SAVE ARRAY dbcdbproCommand

Compatibility: dbc and dbpro

Shared DarkBASIC Classic and Professional callable with the same signature and OpenDBC support state.

Implemented in OpenDBC
SAVE ARRAY String1$, Array2()

Typed signature: string, any array → void

Parameters

ParameterTypeNotes
String1$string—
Array2()any arraywhole array (() marker)

Example generated example

rem SAVE ARRAY — generated example
save array "media/file.dat", myarray()

Source: darkbasic_reference.md:277; dbpro_reference.md:1004