Results 1 to 8 of 8

Thread: c# help

Threaded View

  1. #1
    Josh's Avatar
    Joined
    Dec 2011
    Posts
    415
    Userbars
    2
    Thanks
    25
    Thanked
    378/143
    DL/UL
    82/6
    Mentioned
    120 times
    Time Online
    17d 9h 48m
    Avg. Time Online
    5m

    c# help

    @(you need an account to see links)

    (you need an account to see links)

    I dont get why that doesnt work.

    Its for a kad feeder. Never really worked in c# before. lsttemp is a list containing both the ids and item names. And lstignore is the items to ignore.

    I believe the problem is when it deletes the last thing in the list.
    Code:
    InvalidArgument=Value of '8' is not valid for 'index'.
    ^Thats the error I get.

    And this line is highlighted:
    Code:
    if (lsttemp.Items[i].ToString().Contains(removelistitem))
    Last edited by Josh; 12-11-2012 at 01:27 AM.

Posting Permissions

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