Quote: "But yet global shows up as a keyword (blue and bold) in the editor. So I can just declare a variable to be global and I'll be able to use it in functions?"
Jinzai is right. If you can run this without it causing an error then yes you can use globals. Try running it.
global a=20
Test()
wait key
end
function Test()
print a
endfunction
Does it work or does it say "Syntax Error. Unknown command at line 1"?
Quote: "I know that's what globals do, but are regular, non-array variables in darkBASIC able to be accessable to any part of the program?"
Regular non-array variables can't be accessable inside functions but you can send one into a function and get it back changed... but it can only return one variable.
a=20
a=Test(a)
print a
wait key
end
function Test(Number)
inc Number
endfunction Number