Hi,
What is the correct way to initialise an Array of Strings in AppGameKit 2?
Using the information available, I've defined the array as :-
global g_strArray$ as string [8] = ["C2", "C2", "E2","G2","G2","Z"," "," "]
This compiles fine, but when I try and run the program I get the following error
ByteCode Error, Array has no dimensions.
And this is before I try and use the array or process it.
I could use
g_strArray $[0] = "C2"
g_strArray $[1] = "C2"
g_strArray $[2] = "E2"
g_strArray $[3] = "G2"
g_strArray $[4] = "G2"
g_strArray $[5] = "Z"
And that works, but obviously very painful when I want to change or add data to the array.
So what is the correct way to allocate and initialise a String Array.
Many Thanks
Jason
https://www.facebook.com/WonkyPix
http://www.wonkypix.com
http://www.appstore.com/jsecconsultancyltd