I got tasked with working on a project that uses Visual Basic as the language to debug some programs on an Intermec handheld scanner that runs Windows Embedded Handheld 6.5 Classic/CE OS 5.2.29217. The problem I keep running into is that I don't have a reference for data types, methods, etc. because I don't know what version of VB I'm using. Is there maybe a VB reference website that helps with backwards compatibility?
Note - I have to code this all on Visual Studio 2008 Pro because I couldn't get the program to work on a newer version of Visual Studio.
Example problem:
Public listSites As List(Of String)
...
listSites.Clear() 'This gives a NullReferenceException
In the example above, I have a global variable called listSites
that should hold an array of strings. All I want to do is safely empty it out before using it, regardless of whether or not it is filled. I noticed that this variable had .Clear()
in its list of available methods, but when I try to use it I get a NullReferenceException
.