Closed Thread
Results 1 to 4 of 4

Thread: C# noob question 3, list question

  1. #1
    Siten0308's Avatar
    Siten0308 is offline Programming Professional
    Join Date
    Jun 2008
    Location
    California, USA
    Posts
    302
    Rep Power
    16

    Question C# noob question 3, list question

    Hello,

    just a simple noob question, I have a list of like 100 words, and i want only lets say to list 40-50 words out of 100, for example, 1-100, but i want row 40-50 to only be displayed.... any way i can do that without having to type out like one at a time to display in a listbox... but instead display row 40-50?

    Thanks
    Its only funny till someone gets hurt.... THEN ITS HILARIOUS

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Location
    Advertising world
    Posts
    Many

     
  3. #2
    QuackWare is offline Learning Programmer
    Join Date
    Jan 2010
    Posts
    95
    Rep Power
    8

    Re: C# noob question 3, list question

    I don't know what you mean by "list" so I assume its System.Collections.Generic.List. Something like this might help:

    Code:
    for(int i = 40;i<=50;i++)
    {
    Console.Writeline(listName[i]);
    }
    Now if you are using something else that for statement should still work fine.

  4. #3
    Siten0308's Avatar
    Siten0308 is offline Programming Professional
    Join Date
    Jun 2008
    Location
    California, USA
    Posts
    302
    Rep Power
    16

    Re: C# noob question 3, list question

    I think you are correct Quackware, thanks for the info, this will work
    Its only funny till someone gets hurt.... THEN ITS HILARIOUS

  5. #4
    Siten0308's Avatar
    Siten0308 is offline Programming Professional
    Join Date
    Jun 2008
    Location
    California, USA
    Posts
    302
    Rep Power
    16

    Re: C# noob question 3, list question

    Opps forgot to say, You are correct Quackware, i should of thought of that... DUH!!!!, ya i am using Generic List, so ya that will work perfect, thank you.
    Its only funny till someone gets hurt.... THEN ITS HILARIOUS

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. PHP noob question
    By delta9r9r in forum PHP Development
    Replies: 7
    Last Post: 07-17-2011, 03:19 PM
  2. A question from a noob
    By fiddilydee in forum General Programming
    Replies: 5
    Last Post: 06-23-2009, 07:47 PM
  3. Question from a noob...
    By mcg_999 in forum General Programming
    Replies: 1
    Last Post: 10-29-2008, 02:29 PM
  4. A noob question?
    By MPax in forum C and C++
    Replies: 6
    Last Post: 04-03-2008, 08:27 AM
  5. web dev noob question
    By jub jub jedi in forum General Programming
    Replies: 1
    Last Post: 03-26-2007, 04:41 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts