I've got a bit of a problem:
In Gambas, I'm trying to define an array in a separate class called "global" (it's an array that needs global availability). For all the documentation I've read, I should declare it like so:
Code:
STATIC PUBLIC array_x AS String[]
The moment a subroutine from any other class thinks of assigning an array element a value, I get a "Null Object" error.
I should be able to assign an element a value by doing the following (assuming I'm doing the assignment outside of the class array_x is defined in):
Code:
global.array_x[5] = "hullabaloo"
Any suggestions?
Do I need to assign any values in the class in which "array_x" is defined?