| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | Newsletters | VB Forums | Developer.com |
|
|||||||
| Visual Basic .NET Microsoft Visual Basic .NET and related questions. |
![]() |
|
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
[RESOLVED] (VB. NET 2003) - Flexible Data Sets for Functions
I have only 2 sets of "fixed" numbers used, that I need to be able to toggle between. Particularly, for array sizes/for loops. Is it best to use "Collections" in VB.NET to accomplish this?
Thanks. -Quinn |
|
#2
|
||||
|
||||
|
Re: (VB. NET 2003) - Flexible Data Sets for Functions
Need an example of what you mean. Details. Details. Details.
EDIT: And why are you still using VS2003? VS2008 is out, and VS2010 hit it's next milestone last week.
__________________
David CodeGuru Article: Bound Controls are Evil-VB6 101 Samples: VB & C# VS2008 Samples CodeGuru Reviewer 2006 Dell CSP 2006, 2007 & 2008 MVP Visual Basic If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!
|
|
#3
|
|||
|
|||
|
Re: (VB. NET 2003) - Flexible Data Sets for Functions
Sorry, its because my employer still uses it. I'm using VS 2008 at home.
I basically have 2 "parameters" that I toggle via checkbox, based on what I'm choosing, the number of pages, size of for-loops change. Hope that makes more sense. |
|
#4
|
||||
|
||||
|
Re: (VB. NET 2003) - Flexible Data Sets for Functions
Use whatever is easiest for you. Not sure what was included back then, but whatever method you choose, should work.
I'd create a LIST(of T) that you can use LIST.Add("Name:, " & textbox2) so you can then SPLIT a line
__________________
David CodeGuru Article: Bound Controls are Evil-VB6 101 Samples: VB & C# VS2008 Samples CodeGuru Reviewer 2006 Dell CSP 2006, 2007 & 2008 MVP Visual Basic If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!
|
|
#5
|
|||
|
|||
|
Re: (VB. NET 2003) - Flexible Data Sets for Functions
Meh. Well, I'm a decent programmer, I'm just getting used to the VB.NET syntax. Anyhow, I just decided to go with an array, I didn't need anything super fancy. Thanks for the help.
|
|
#6
|
||||
|
||||
|
If the count is fixed, then an ARRAY should be sufficient.
I believe in 2003, an ARRAYLIST was the way to handle dynamic arrays.
__________________
Good Luck, Craig - CRG IT Solutions -My posts after 12/2007 = .NET 3.5 and Visual Studio 2008 -My posts after 04/2007 = .NET 3.0 and Visual Studio 2005 -My posts before 04/2007 = .NET 1.1/2.0 *VB.NET Tutorials , HowTos , Books , Helpful Links: Click Here *I do not follow threads, so if you have a secondary question, message me. |
![]() |
| Bookmarks |
|
||||||
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|