User Profile

Collapse

Profile Sidebar

Collapse
JakeMathews
JakeMathews
Last Activity: Jun 30 '10, 02:37 PM
Joined: Jun 24 '10
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • JakeMathews
    replied to Hashtable and forloop error
    Sorry for not being clear.
    Here's the thing arraystate = 0; but everytime the user inputs "N" 5 will be added to the current arraystate and when 15 is reached the arraystate becomes 0 again(not implemented yet though)

    There is no other input involved in this section
    See more | Go to post

    Leave a comment:


  • JakeMathews
    replied to Hashtable and forloop error
    @Frinavale thanks for the reply
    I know with my code snippet it's impossible to know what I'm trying to do.

    The minor adjustment you suggested really helped me out. By changing Line16 nameListArray.L ength to myArrList.Count the code is working fine. Thank you very much.

    This is the reason I'm not checking j I know it is clumsy.

    Code:
    if(userinput == "N") 
     {
      arraystate = (arraystate
    ...
    See more | Go to post

    Leave a comment:


  • JakeMathews
    replied to Hashtable and forloop error
    The error I'm facing is that when the arraylist myArrList contains less then 5 values the following if/else statement from line 20 won't get executed at all heck nothing gets executed after line 18 it just jumps out of the surrounding brackets which would be fine if I wanted that.

    I hope you can understand me now
    See more | Go to post

    Leave a comment:


  • JakeMathews
    started a topic Hashtable and forloop error

    Hashtable and forloop error

    Hi everyone,

    First off this is my first post on this site so hello again.
    I'm a beginner at programming in C#/ASP so the code I'm about show you may be bad practice or even worse but I'm getting better I hope.

    What I want: I want to populate a hashtable(compl eteList) with an arraylist(myArr List) to do this I'm using a for loop which also appends information from another arraylist(nameL istArray) to a string(nameList )...
    See more | Go to post
No activity results to display
Show More
Working...