In this snipit of code an error is halting the execution of the rest of the program, the error is as follows:
A first chance exception of type 'System.InvalidCastException' occurred in Microsoft.VisualBasic.dll
The code snipet:
If Key1 = True & nMap(0, Count) = 0 Then
nMap(0, Count) = 1
ElseIf Key1 = True Then
nMap(0, Count) = 0
End If
I would like to know how to resolve this issue, any help would be appreciated, thank you
-Jordan