|
-
Mar 21st, 2013, 07:50 AM
#1
Thread Starter
Junior Member
[RESOLVED] Global Arrays
Hi,
I'm doing my computing soursework for school and have come across one final problem which I though would be very simple to correct.
All I need to do is define 2 different arrays so that they are all global and accessable by all forms.
I have tried declairing them as a global variable ;
Dim Player(0 to 2) as string
Dim Score(0 to 2) as integer
This does not work as the array is only accessable to one form.
I have also tried;
Public Player(0 to 2) as string
Public Score(0 to 2) as integer
This returns an error saying arrays cannot be global.
Any help would be amazing! Thanks in advance.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|