CodeGuru Forums -
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic Newsletters VB Forums Developer.com


Newest CodeGuru.com Articles:

  • Deploying Windows Server 2008 with System Center
  • Remote Desktop Protocol Performance Improvements in Windows Server 2008 R2 and Windows 7
  • The Microsoft Dynamics CRM Security Model
  • SQL Server Modeling Services with Microsoft Visual Studio 2010 Beta 2

  • Search CodeGuru:
     



    Go Back   CodeGuru Forums > Visual Basic Programming > Visual Basic .NET
    FAQ Members List Calendar Search Today's Posts Mark Forums Read

    Visual Basic .NET Microsoft Visual Basic .NET and related questions.

    Reply
     
    Thread Tools Search this Thread Rate Thread Display Modes
      #1    
    Old November 12th, 2009, 09:22 AM
    QuinnJohns QuinnJohns is offline
    Member
     
    Join Date: Jul 2005
    Location: Louisville, KY
    Posts: 68
    QuinnJohns is on a distinguished road (20+)
    [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
    Reply With Quote
      #2    
    Old November 12th, 2009, 06:47 PM
    dglienna's Avatar
    dglienna dglienna is offline
    ex MVP - Visual Basic
    Power Poster
     
    Join Date: Jan 2006
    Location: Chicago, IL
    Posts: 10,288
    dglienna has a brilliant future (2000+) dglienna has a brilliant future (2000+) dglienna has a brilliant future (2000+) dglienna has a brilliant future (2000+) dglienna has a brilliant future (2000+) dglienna has a brilliant future (2000+) dglienna has a brilliant future (2000+) dglienna has a brilliant future (2000+) dglienna has a brilliant future (2000+) dglienna has a brilliant future (2000+) dglienna has a brilliant future (2000+)
    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!
    Reply With Quote
      #3    
    Old November 13th, 2009, 02:20 PM
    QuinnJohns QuinnJohns is offline
    Member
     
    Join Date: Jul 2005
    Location: Louisville, KY
    Posts: 68
    QuinnJohns is on a distinguished road (20+)
    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.
    Reply With Quote
      #4    
    Old November 13th, 2009, 07:24 PM
    dglienna's Avatar
    dglienna dglienna is offline
    ex MVP - Visual Basic
    Power Poster
     
    Join Date: Jan 2006
    Location: Chicago, IL
    Posts: 10,288
    dglienna has a brilliant future (2000+) dglienna has a brilliant future (2000+) dglienna has a brilliant future (2000+) dglienna has a brilliant future (2000+) dglienna has a brilliant future (2000+) dglienna has a brilliant future (2000+) dglienna has a brilliant future (2000+) dglienna has a brilliant future (2000+) dglienna has a brilliant future (2000+) dglienna has a brilliant future (2000+) dglienna has a brilliant future (2000+)
    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!
    Reply With Quote
      #5    
    Old November 15th, 2009, 01:26 AM
    QuinnJohns QuinnJohns is offline
    Member
     
    Join Date: Jul 2005
    Location: Louisville, KY
    Posts: 68
    QuinnJohns is on a distinguished road (20+)
    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.
    Reply With Quote
      #6    
    Old November 15th, 2009, 12:31 PM
    Craig Gemmill's Avatar
    Craig Gemmill Craig Gemmill is offline
    Senior Member
     
    Join Date: Feb 2000
    Location: OH - USA
    Posts: 1,838
    Craig Gemmill is a splendid one to behold (750+) Craig Gemmill is a splendid one to behold (750+) Craig Gemmill is a splendid one to behold (750+) Craig Gemmill is a splendid one to behold (750+) Craig Gemmill is a splendid one to behold (750+) Craig Gemmill is a splendid one to behold (750+) Craig Gemmill is a splendid one to behold (750+) Craig Gemmill is a splendid one to behold (750+)
    Arrow Re: (VB. NET 2003) - Flexible Data Sets for Functions

    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.
    Reply With Quote
    Reply

    Bookmarks
    Go Back   CodeGuru Forums > Visual Basic Programming > Visual Basic .NET


    Thread Tools Search this Thread
    Search this Thread:

    Advanced Search
    Display Modes Rate This Thread
    Rate This Thread:

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off
    Forum Jump


    All times are GMT -5. The time now is 01:24 PM.



    Acceptable Use Policy


    The Network for Technology Professionals

    Search:

    About Internet.com

    Legal Notices, Licensing, Permissions, Privacy Policy.
    Advertise | Newsletters | E-mail Offers


    Powered by vBulletin® Version 3.7.3
    Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.