-
February 18th, 2009, 04:36 PM
#1
Make an array global
Hi, I created a two dimensional array and I found out that I cannot just use it locally. So how can I use it in other parts of my program? That is, how can I use it globally?
**Edit**
Something I thought might be useful to know is that the array is a dynamic array. Here is how I declare it:
string[,] NESRomArray = new String[NumberOfRowsInArray, 2];
Thanks,
Randell
Last edited by vandel212; February 18th, 2009 at 04:40 PM.
-
February 18th, 2009, 05:42 PM
#2
Re: Make an array global
Last edited by BigEd781; February 18th, 2009 at 05:53 PM.
-
February 20th, 2009, 03:20 PM
#3
Re: Make an array global
Is this a winForm or a web appliction ?
In a WinForm app I would never do a global array. Use the MVP pattern having all your data in the datalayer and use interfaces for access to this data.
Jonny Poet
To be Alive is depending on the willingsness to help others and also to permit others to help you. So lets be alive. !
Using Code Tags makes the difference: Code is easier to read, so its easier to help. Do it like this: [CODE] Put Your Code here [/code]
If anyone felt he has got help, show it in rating the post.
Also dont forget to set a post which is fully answered to 'resolved'. For more details look to FAQ's about Forum Usage. BTW I'm using Framework 3.5 and you ?
My latest articles :
Creating a Dockable Panel-Controlmanager Using C#, Part 1 | Part 2 | Part 3 | Part 4 | Part 5 | Part 6 | Part 7
Tags for this Thread
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
|