-
OOO question
I am a professional mainframe programmer, and I am trying to learn .Net. I have an OOO problem that is stumping me. I can get around it, but it would look like amateur hacking. I would like to do it the OOO way.
Simply put:
In one method (ReadAccounts), I am reading an Access table into a List (AcctsList). I don't have a problem with that; that works.
In another method (DisplayAccounts), I would like to READ that list, and then process it.
I tried to make the list "global", but I am tripping up on the language. Here is my code:
public void ReadAccounts()
{
var AcctsList = new List<AcctRec>(); // How do I make THIS AcctsList available to other programs?
}
public void DisplayAccounts()
{
// Process AcctsList from ReadAccounts above.
}
How do I do this? I'm sure there is a simple explanation to this.
Thanks in advance! Any help is really appreciated.
Dave
Similar Threads
-
Replies: 0
Last Post: 09-20-2004, 11:46 AM
-
Replies: 0
Last Post: 09-20-2004, 11:39 AM
-
By Colin Moore in forum VB Classic
Replies: 2
Last Post: 07-16-2001, 03:20 AM
-
By Victoria in forum VB Classic
Replies: 1
Last Post: 06-12-2001, 04:16 PM
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
|
Development Centers
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center
|