15,907,497 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
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.)