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
User Profile
Collapse
-
@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
Leave a comment:
-
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 nowLeave a comment:
-
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 )...
No activity results to display
Show More
Leave a comment: