Click here to Skip to main content
15,907,497 members

Comments by Member 11742116 (Top 2 by date)

Member 11742116 9-Jun-15 13:13pm View    
Richard is correct, I'm working in VB.net, and I did do basic research but couldn't find an answer which is why I came here, no need to jump to assumptions. There is no "bool" but rather "Boolean" (I get that they're the same word but that's not the point...) which is perhaps why your search yielded a helpful answer and mine haven't been. F-ES answered my question with the first line; I simply wanted to know if the compiler read them in in any minutely different way. Thank you for your answers
Member 11742116 4-Jun-15 13:45pm View    
I did try and index it in my code, it is just commented out for now because I tried to implement the test in multiple ways and couldn't get any to work. Unless what you meant to say was that I am indexing it in the wrong way, in which case that was actually my initial question: how do I index into a list of lists?

For example, in version 2 of my check 2 which is commented out towards the bottom, the code
line = allPartNumInfo(x)
assigns the variable "line" a reference to the list of strings (an "inner" list object in this case, as you call it) in the x'th index of allPartNumInfo. I then try and index into "line" with
Dim item As String = line(y)
in an attempt to retrieve the string contained in my inner list. When I put in a break point and move through that line I get the following error:
An unhandled exception of type 'System.ArgumentOutOfRangeException' occurred in mscorlib.dll
Additional information: Index was out of range. Must be non-negative and less than the size of the collection.
This is where I am stuck/confused. A similar error occurs when I walk through version 3, also commented out at the bottom, and run the line
sresult3 &= (allPartNumInfo(x)(y) & ",")
where I try and index into both the list and list-of-lists at once (as I have seen in some of my google travels.)