APPEND$ dbproFunction
Compatibility: dbpro
DarkBASIC Professional function implemented with an observable contract.
Implemented in OpenDBCResult$ = APPEND$(String1$, String2$)
Typed signature: string, string → string
Parameters
| Parameter | Type | Notes |
|---|
String1$ | string | — |
String2$ | string | — |
Return value: string
Example generated example
rem APPEND$ — generated example
result$ = append$("text", "text")
print result$
wait key
Source: dbpro_reference.md:1540
ASC dbcdbproFunction
Compatibility: dbc and dbpro
Shared DarkBASIC Classic and Professional callable with the same signature and OpenDBC support state.
Implemented in OpenDBCResult = ASC(String1$)
Typed signature: string → integer
Parameters
| Parameter | Type | Notes |
|---|
String1$ | string | — |
Return value: integer
Example generated example
rem ASC — generated example
result = asc("text")
print result
wait key
Source: darkbasic_reference.md:451; dbpro_reference.md:1544
CENTER TEXT dbcdbproCommand
Compatibility: dbc and dbpro
Shared DarkBASIC Classic and Professional callable with the same signature and OpenDBC support state.
Implemented in OpenDBCCENTER TEXT Number1, Number2, String3$
Typed signature: number, number, string → void
Parameters
| Parameter | Type | Notes |
|---|
Number1 | number | — |
Number2 | number | — |
String3$ | string | — |
Example generated example
rem CENTER TEXT — generated example
center text 1, 1, "text"
wait key
Source: darkbasic_reference.md:33; dbpro_reference.md:102
CHR$ dbcdbproFunction
Compatibility: dbc and dbpro
Shared DarkBASIC Classic and Professional callable with the same signature and OpenDBC support state.
Implemented in OpenDBCResult$ = CHR$(Number1)
Typed signature: number → string
Parameters
| Parameter | Type | Notes |
|---|
Number1 | number | — |
Return value: string
Example generated example
rem CHR$ — generated example
result$ = chr$(1)
print result$
wait key
Source: darkbasic_reference.md:490; dbpro_reference.md:1593
COMPARE CASE$ dbproFunction
Compatibility: dbpro
DarkBASIC Professional function implemented with an observable contract.
Implemented in OpenDBCResult = COMPARE CASE$(String1$, String2$)
Typed signature: string, string → integer
Parameters
| Parameter | Type | Notes |
|---|
String1$ | string | — |
String2$ | string | — |
Return value: integer
Example generated example
rem COMPARE CASE$ — generated example
result = compare case$("text", "text")
print result
wait key
Source: dbpro_reference.md:1609
DIRECTX REFRESH RATE$ dbproFunction
Compatibility: dbpro
Historical DarkBASIC Professional function recognized for a stable unsupported diagnostic.
Not implemented (recognized, DBC2043 diagnostic)Result$ = DIRECTX REFRESH RATE$()
Typed signature: none → string
Parameters
No parameters.
Return value: string
Example generated example
rem DIRECTX REFRESH RATE$ — generated example
result$ = directx refresh rate$()
print result$
wait key
Source: dbpro_reference.md:1634
DIRECTX VERSION$ dbproFunction
Compatibility: dbpro
Historical DarkBASIC Professional function recognized for a stable unsupported diagnostic.
Not implemented (recognized, DBC2043 diagnostic)Result$ = DIRECTX VERSION$()
Typed signature: none → string
Parameters
No parameters.
Return value: string
Example generated example
rem DIRECTX VERSION$ — generated example
result$ = directx version$()
print result$
wait key
Source: dbpro_reference.md:1635
FIND FIRST CHAR$ dbproFunction
Compatibility: dbpro
DarkBASIC Professional function implemented with an observable contract.
Implemented in OpenDBCResult = FIND FIRST CHAR$(String1$, String2$)
Typed signature: string, string → integer
Parameters
| Parameter | Type | Notes |
|---|
String1$ | string | — |
String2$ | string | — |
Return value: integer
Example generated example
rem FIND FIRST CHAR$ — generated example
result = find first char$("text", "text")
print result
wait key
Source: dbpro_reference.md:1654
FIND LAST CHAR$ dbproFunction
Compatibility: dbpro
DarkBASIC Professional function implemented with an observable contract.
Implemented in OpenDBCResult = FIND LAST CHAR$(String1$, String2$)
Typed signature: string, string → integer
Parameters
| Parameter | Type | Notes |
|---|
String1$ | string | — |
String2$ | string | — |
Return value: integer
Example generated example
rem FIND LAST CHAR$ — generated example
result = find last char$("text", "text")
print result
wait key
Source: dbpro_reference.md:1655
FIND SUB STRING$ dbproFunction
Compatibility: dbpro
DarkBASIC Professional function implemented with an observable contract.
Implemented in OpenDBCResult = FIND SUB STRING$(String1$, String2$)
Typed signature: string, string → integer
Parameters
| Parameter | Type | Notes |
|---|
String1$ | string | — |
String2$ | string | — |
Return value: integer
Example generated example
rem FIND SUB STRING$ — generated example
result = find sub string$("text", "text")
print result
wait key
Source: dbpro_reference.md:1656
FIRST TOKEN$ dbproFunction
Compatibility: dbpro
DarkBASIC Professional function implemented with an observable contract.
Implemented in OpenDBCResult$ = FIRST TOKEN$(String1$, String2$)
Typed signature: string, string → string
Parameters
| Parameter | Type | Notes |
|---|
String1$ | string | — |
String2$ | string | — |
Return value: string
Example generated example
rem FIRST TOKEN$ — generated example
result$ = first token$("text", "text")
print result$
wait key
Source: dbpro_reference.md:1657
FREE STRING$ dbproFunction
Compatibility: dbpro
Historical DarkBASIC Professional function recognized for a stable unsupported diagnostic.
Not implemented (recognized, DBC2043 diagnostic)Result$ = FREE STRING$()
Typed signature: none → string
Parameters
No parameters.
Return value: string
Example generated example
rem FREE STRING$ — generated example
result$ = free string$()
print result$
wait key
Source: dbpro_reference.md:1665
GET COMPUTER NAME$ dbproFunction
Compatibility: dbpro
Historical DarkBASIC Professional function recognized for a stable unsupported diagnostic.
Not implemented (recognized, DBC2043 diagnostic)Result$ = GET COMPUTER NAME$()
Typed signature: none → string
Parameters
No parameters.
Return value: string
Example generated example
rem GET COMPUTER NAME$ — generated example
result$ = get computer name$()
print result$
wait key
Source: dbpro_reference.md:1680
GET IP ADDRESS$ dbproFunction
Compatibility: dbpro
Historical DarkBASIC Professional function recognized for a stable unsupported diagnostic.
Not implemented (recognized, DBC2043 diagnostic)Result$ = GET IP ADDRESS$()
Typed signature: none → string
Parameters
No parameters.
Return value: string
Example generated example
rem GET IP ADDRESS$ — generated example
result$ = get ip address$()
print result$
wait key
Source: dbpro_reference.md:1765
GET PROCESSOR BRAND$ dbproFunction
Compatibility: dbpro
Historical DarkBASIC Professional function recognized for a stable unsupported diagnostic.
Not implemented (recognized, DBC2043 diagnostic)Result$ = GET PROCESSOR BRAND$(Integer1)
Typed signature: integer → string
Parameters
| Parameter | Type | Notes |
|---|
Integer1 | integer | — |
Return value: string
Example generated example
rem GET PROCESSOR BRAND$ — generated example
result$ = get processor brand$(1)
print result$
wait key
Source: dbpro_reference.md:1802
GET PROCESSOR NAME$ dbproFunction
Compatibility: dbpro
Historical DarkBASIC Professional function recognized for a stable unsupported diagnostic.
Not implemented (recognized, DBC2043 diagnostic)Result$ = GET PROCESSOR NAME$(Integer1)
Typed signature: integer → string
Parameters
| Parameter | Type | Notes |
|---|
Integer1 | integer | — |
Return value: string
Example generated example
rem GET PROCESSOR NAME$ — generated example
result$ = get processor name$(1)
print result$
wait key
Source: dbpro_reference.md:1807
GET PROCESSOR PLATFORM$ dbproFunction
Compatibility: dbpro
Historical DarkBASIC Professional function recognized for a stable unsupported diagnostic.
Not implemented (recognized, DBC2043 diagnostic)Result$ = GET PROCESSOR PLATFORM$(Integer1)
Typed signature: integer → string
Parameters
| Parameter | Type | Notes |
|---|
Integer1 | integer | — |
Return value: string
Example generated example
rem GET PROCESSOR PLATFORM$ — generated example
result$ = get processor platform$(1)
print result$
wait key
Source: dbpro_reference.md:1808
GET PROCESSOR VENDOR$ dbproFunction
Compatibility: dbpro
Historical DarkBASIC Professional function recognized for a stable unsupported diagnostic.
Not implemented (recognized, DBC2043 diagnostic)Result$ = GET PROCESSOR VENDOR$(Integer1)
Typed signature: integer → string
Parameters
| Parameter | Type | Notes |
|---|
Integer1 | integer | — |
Return value: string
Example generated example
rem GET PROCESSOR VENDOR$ — generated example
result$ = get processor vendor$(1)
print result$
wait key
Source: dbpro_reference.md:1812
GET TYPE PATTERN$ dbproFunction
Compatibility: dbpro
Historical DarkBASIC Professional function recognized for a stable unsupported diagnostic.
Not implemented (recognized, DBC2043 diagnostic)Result$ = GET TYPE PATTERN$(Number1, [Number2])
Typed signature: number, number → string
Parameters
| Parameter | Type | Notes |
|---|
Number1 | number | — |
Number2 | number | optional |
Return value: string
Example generated example
rem GET TYPE PATTERN$ — generated example
result$ = get type pattern$(1, 1)
print result$
wait key
Source: dbpro_reference.md:1828
GET USER NAME$ dbproFunction
Compatibility: dbpro
Historical DarkBASIC Professional function recognized for a stable unsupported diagnostic.
Not implemented (recognized, DBC2043 diagnostic)Result$ = GET USER NAME$()
Typed signature: none → string
Parameters
No parameters.
Return value: string
Example generated example
rem GET USER NAME$ — generated example
result$ = get user name$()
print result$
wait key
Source: dbpro_reference.md:1829
GET WEB CLIENT$ dbproFunction
Compatibility: dbpro
Historical DarkBASIC Professional function recognized for a stable unsupported diagnostic.
Not implemented (recognized, DBC2043 diagnostic)Result$ = GET WEB CLIENT$()
Typed signature: none → string
Parameters
No parameters.
Return value: string
Example generated example
rem GET WEB CLIENT$ — generated example
result$ = get web client$()
print result$
wait key
Source: dbpro_reference.md:1846
LEFT$ dbcdbproFunction
Compatibility: dbc and dbpro
Shared DarkBASIC Classic and Professional callable with the same signature and OpenDBC support state.
Implemented in OpenDBCResult$ = LEFT$(String1$, Number2)
Typed signature: string, number → string
Parameters
| Parameter | Type | Notes |
|---|
String1$ | string | — |
Number2 | number | — |
Return value: string
Example
print left$("DarkBASIC", 4)
wait key
Source: darkbasic_reference.md:579; dbpro_reference.md:1895
LEN dbcdbproFunction
Compatibility: dbc and dbpro
Shared DarkBASIC Classic and Professional callable with the same signature and OpenDBC support state.
Implemented in OpenDBCResult = LEN(String1$)
Typed signature: string → integer
Parameters
| Parameter | Type | Notes |
|---|
String1$ | string | — |
Return value: integer
Example
print len("DarkBASIC")
wait key
Source: darkbasic_reference.md:581; dbpro_reference.md:1897
LOWER$ dbcdbproFunction
Compatibility: dbc and dbpro
Shared DarkBASIC Classic and Professional callable with the same signature and OpenDBC support state.
Implemented in OpenDBCResult$ = LOWER$(String1$)
Typed signature: string → string
Parameters
| Parameter | Type | Notes |
|---|
String1$ | string | — |
Return value: string
Example
print lower$("DARKBASIC")
wait key
Source: darkbasic_reference.md:614; dbpro_reference.md:1942
MID$ dbcdbproFunction
Compatibility: dbc and dbpro
Shared DarkBASIC Classic and Professional callable with the same signature and OpenDBC support state.
Implemented in OpenDBCResult$ = MID$(String1$, Number2)
Typed signature: string, number → string
Parameters
| Parameter | Type | Notes |
|---|
String1$ | string | — |
Number2 | number | — |
Return value: string
Example
print mid$("DarkBASIC", 5)
wait key
Source: darkbasic_reference.md:629; dbpro_reference.md:1965
NEXT TOKEN$ dbproFunction
Compatibility: dbpro
DarkBASIC Professional function implemented with an observable contract.
Implemented in OpenDBCResult$ = NEXT TOKEN$(String1$)
Typed signature: string → string
Parameters
| Parameter | Type | Notes |
|---|
String1$ | string | — |
Return value: string
Example generated example
rem NEXT TOKEN$ — generated example
result$ = next token$("text")
print result$
wait key
Source: dbpro_reference.md:2019
PRINT dbcdbproCommand
Compatibility: dbc and dbpro
Shared DarkBASIC Classic and Professional callable with the same signature and OpenDBC support state.
Implemented in OpenDBCPRINT [Value1]
Typed signature: any... → void
Parameters
| Parameter | Type | Notes |
|---|
Value1 | any... | optional |
Example
print "Hello world"
print "Score: ", 100
wait key
Source: darkbasic_reference.md:248; dbpro_reference.md:924
PRINTC dbproCommand
Compatibility: dbpro
DarkBASIC Professional command implemented with an observable contract.
Implemented in OpenDBCPRINTC Value1
Typed signature: any → void
Parameters
| Parameter | Type | Notes |
|---|
Value1 | any | — |
Example generated example
rem PRINTC — generated example
printc 1
wait key
Source: dbpro_reference.md:925
REVERSE$ dbproFunction
Compatibility: dbpro
DarkBASIC Professional function implemented with an observable contract.
Implemented in OpenDBCResult$ = REVERSE$(String1$)
Typed signature: string → string
Parameters
| Parameter | Type | Notes |
|---|
String1$ | string | — |
Return value: string
Example generated example
rem REVERSE$ — generated example
result$ = reverse$("text")
print result$
wait key
Source: dbpro_reference.md:2244
RIGHT$ dbcdbproFunction
Compatibility: dbc and dbpro
Shared DarkBASIC Classic and Professional callable with the same signature and OpenDBC support state.
Implemented in OpenDBCResult$ = RIGHT$(String1$, Number2)
Typed signature: string, number → string
Parameters
| Parameter | Type | Notes |
|---|
String1$ | string | — |
Number2 | number | — |
Return value: string
Example
print right$("DarkBASIC", 5)
wait key
Source: darkbasic_reference.md:689; dbpro_reference.md:2249
SET CURSOR dbcdbproCommand
Compatibility: dbc and dbpro
Shared DarkBASIC Classic and Professional callable with the same signature and OpenDBC support state.
Implemented in OpenDBCSET CURSOR Number1, Number2
Typed signature: number, number → void
Parameters
| Parameter | Type | Notes |
|---|
Number1 | number | — |
Number2 | number | — |
Example
set cursor 100, 50
print "Text at 100,50"
wait key
Source: darkbasic_reference.md:311; dbpro_reference.md:1090
SET TEXT FONT dbcdbproCommand
Compatibility: dbc and dbpro
Shared DarkBASIC Classic and Professional callable with the same signature and OpenDBC support state.
Implemented in OpenDBCSET TEXT FONT String1$, [Number2]
Typed signature: string, number → void
Parameters
| Parameter | Type | Notes |
|---|
String1$ | string | — |
Number2 | number | optional |
Example generated example
rem SET TEXT FONT — generated example
set text font "text", 1
wait key
Source: darkbasic_reference.md:360; dbpro_reference.md:1321
SET TEXT OPAQUE dbcdbproCommand
Compatibility: dbc and dbpro
Shared DarkBASIC Classic and Professional callable with the same signature and OpenDBC support state.
Implemented in OpenDBCSET TEXT OPAQUE
Typed signature: none → void
Parameters
No parameters.
Example generated example
rem SET TEXT OPAQUE — generated example
set text opaque
wait key
Source: darkbasic_reference.md:361; dbpro_reference.md:1322
SET TEXT SIZE dbcdbproCommand
Compatibility: dbc and dbpro
Shared DarkBASIC Classic and Professional callable with the same signature and OpenDBC support state.
Implemented in OpenDBCSET TEXT SIZE Number1
Typed signature: number → void
Parameters
| Parameter | Type | Notes |
|---|
Number1 | number | — |
Example generated example
rem SET TEXT SIZE — generated example
set text size 1
wait key
Source: darkbasic_reference.md:362; dbpro_reference.md:1323
SET TEXT TO BOLD dbcdbproCommand
Compatibility: dbc and dbpro
Shared DarkBASIC Classic and Professional callable with the same signature and OpenDBC support state.
Implemented in OpenDBCSET TEXT TO BOLD
Typed signature: none → void
Parameters
No parameters.
Example generated example
rem SET TEXT TO BOLD — generated example
set text to bold
wait key
Source: darkbasic_reference.md:363; dbpro_reference.md:1324
SET TEXT TO BOLDITALIC dbcdbproCommand
Compatibility: dbc and dbpro
Shared DarkBASIC Classic and Professional callable with the same signature and OpenDBC support state.
Implemented in OpenDBCSET TEXT TO BOLDITALIC
Typed signature: none → void
Parameters
No parameters.
Example generated example
rem SET TEXT TO BOLDITALIC — generated example
set text to bolditalic
wait key
Source: darkbasic_reference.md:364; dbpro_reference.md:1325
SET TEXT TO ITALIC dbcdbproCommand
Compatibility: dbc and dbpro
Shared DarkBASIC Classic and Professional callable with the same signature and OpenDBC support state.
Implemented in OpenDBCSET TEXT TO ITALIC
Typed signature: none → void
Parameters
No parameters.
Example generated example
rem SET TEXT TO ITALIC — generated example
set text to italic
wait key
Source: darkbasic_reference.md:365; dbpro_reference.md:1326
SET TEXT TO NORMAL dbcdbproCommand
Compatibility: dbc and dbpro
Shared DarkBASIC Classic and Professional callable with the same signature and OpenDBC support state.
Implemented in OpenDBCSET TEXT TO NORMAL
Typed signature: none → void
Parameters
No parameters.
Example generated example
rem SET TEXT TO NORMAL — generated example
set text to normal
wait key
Source: darkbasic_reference.md:366; dbpro_reference.md:1327
SET TEXT TRANSPARENT dbcdbproCommand
Compatibility: dbc and dbpro
Shared DarkBASIC Classic and Professional callable with the same signature and OpenDBC support state.
Implemented in OpenDBCSET TEXT TRANSPARENT
Typed signature: none → void
Parameters
No parameters.
Example generated example
rem SET TEXT TRANSPARENT — generated example
set text transparent
wait key
Source: darkbasic_reference.md:367; dbpro_reference.md:1328
SPACE$ dbproFunction
Compatibility: dbpro
DarkBASIC Professional function implemented with an observable contract.
Implemented in OpenDBCResult$ = SPACE$(Number1)
Typed signature: number → string
Parameters
| Parameter | Type | Notes |
|---|
Number1 | number | — |
Return value: string
Example generated example
rem SPACE$ — generated example
result$ = space$(1)
print result$
wait key
Source: dbpro_reference.md:2280
STR$ dbcdbproFunction
Compatibility: dbc and dbpro
DarkBASIC Classic function implemented with an observable contract.
⚠ Behaves differently in DBC and DBProDifference(s): arity, typed overloads.
- Arity:
1 in DBC, 1-2 in DBPro. - Typed signatures differ (see each variant).
DBC variant dbc
Implemented in OpenDBCResult$ = STR$(Value1)
Typed signature: any → string
Parameters
| Parameter | Type | Notes |
|---|
Value1 | any | — |
Return value: string
Example
score = 100
print "Score: " + str$(score)
wait key
DBPro variant dbpro
Implemented in OpenDBCResult$ = STR$(Value1, [Number2])
Typed signature: any, number → string
Parameters
| Parameter | Type | Notes |
|---|
Value1 | any | — |
Number2 | number | optional |
Return value: string
Example
score = 100
print "Score: " + str$(score)
wait key
Source: darkbasic_reference.md:730; dbpro_reference.md:2316
TEXT dbcdbproCommand
Compatibility: dbc and dbpro
Shared DarkBASIC Classic and Professional callable with the same signature and OpenDBC support state.
Implemented in OpenDBCTEXT Number1, Number2, String3$
Typed signature: number, number, string → void
Parameters
| Parameter | Type | Notes |
|---|
Number1 | number | — |
Number2 | number | — |
String3$ | string | — |
Example
text 10, 10, "Free-position text"
wait key
Source: darkbasic_reference.md:401; dbpro_reference.md:1414
TEXT BACKGROUND TYPE dbcdbproFunction
Compatibility: dbc and dbpro
Shared DarkBASIC Classic and Professional callable with the same signature and OpenDBC support state.
Implemented in OpenDBCResult = TEXT BACKGROUND TYPE()
Typed signature: none → integer
Parameters
No parameters.
Return value: integer
Example generated example
rem TEXT BACKGROUND TYPE — generated example
result = text background type()
print result
wait key
Source: darkbasic_reference.md:735; dbpro_reference.md:2330
TEXT FONT$ dbcdbproFunction
Compatibility: dbc and dbpro
Shared DarkBASIC Classic and Professional callable with the same signature and OpenDBC support state.
Implemented in OpenDBCResult$ = TEXT FONT$()
Typed signature: none → string
Parameters
No parameters.
Return value: string
Example generated example
rem TEXT FONT$ — generated example
result$ = text font$()
print result$
wait key
Source: darkbasic_reference.md:736; dbpro_reference.md:2331
TEXT HEIGHT dbcdbproFunction
Compatibility: dbc and dbpro
Shared DarkBASIC Classic and Professional callable with the same signature and OpenDBC support state.
Implemented in OpenDBCResult = TEXT HEIGHT(String1$)
Typed signature: string → integer
Parameters
| Parameter | Type | Notes |
|---|
String1$ | string | — |
Return value: integer
Example generated example
rem TEXT HEIGHT — generated example
result = text height("text")
print result
wait key
Source: darkbasic_reference.md:737; dbpro_reference.md:2332
TEXT SIZE dbcdbproFunction
Compatibility: dbc and dbpro
Shared DarkBASIC Classic and Professional callable with the same signature and OpenDBC support state.
Implemented in OpenDBCResult = TEXT SIZE()
Typed signature: none → integer
Parameters
No parameters.
Return value: integer
Example generated example
rem TEXT SIZE — generated example
result = text size()
print result
wait key
Source: darkbasic_reference.md:738; dbpro_reference.md:2333
TEXT STYLE dbcdbproFunction
Compatibility: dbc and dbpro
Shared DarkBASIC Classic and Professional callable with the same signature and OpenDBC support state.
Implemented in OpenDBCResult = TEXT STYLE()
Typed signature: none → integer
Parameters
No parameters.
Return value: integer
Example generated example
rem TEXT STYLE — generated example
result = text style()
print result
wait key
Source: darkbasic_reference.md:739; dbpro_reference.md:2334
TEXT WIDTH dbcdbproFunction
Compatibility: dbc and dbpro
Shared DarkBASIC Classic and Professional callable with the same signature and OpenDBC support state.
Implemented in OpenDBCResult = TEXT WIDTH(String1$)
Typed signature: string → integer
Parameters
| Parameter | Type | Notes |
|---|
String1$ | string | — |
Return value: integer
Example generated example
rem TEXT WIDTH — generated example
result = text width("text")
print result
wait key
Source: darkbasic_reference.md:740; dbpro_reference.md:2335
UPPER$ dbcdbproFunction
Compatibility: dbc and dbpro
Shared DarkBASIC Classic and Professional callable with the same signature and OpenDBC support state.
Implemented in OpenDBCResult$ = UPPER$(String1$)
Typed signature: string → string
Parameters
| Parameter | Type | Notes |
|---|
String1$ | string | — |
Return value: string
Example
print upper$("darkbasic")
wait key
Source: darkbasic_reference.md:745; dbpro_reference.md:2345
VAL dbcdbproFunction
Compatibility: dbc and dbpro
Shared DarkBASIC Classic and Professional callable with the same signature and OpenDBC support state.
Implemented in OpenDBCResult = VAL(String1$)
Typed signature: string → real
Parameters
| Parameter | Type | Notes |
|---|
String1$ | string | — |
Return value: real
Example
print val("42") + 8
wait key
Source: darkbasic_reference.md:746; dbpro_reference.md:2346