G
Guest
I am getting the following error when I try to write a value to my array.
An unhandled exception of type 'System.NullReferenceException' occurred in
EmpPrinting.exe
Additional information: Object reference not set to an instance of an object.
This error only occurs when I don't include an initial size in my
declareation (ex. DIM strArray( ) as String). If I declare an array with an
initial size (ex. DIM strArray(11) as String) then it works fine. In my
textbook it says you can declare and not include an initial size. Can anyone
help.
Thanks in advance.
An unhandled exception of type 'System.NullReferenceException' occurred in
EmpPrinting.exe
Additional information: Object reference not set to an instance of an object.
This error only occurs when I don't include an initial size in my
declareation (ex. DIM strArray( ) as String). If I declare an array with an
initial size (ex. DIM strArray(11) as String) then it works fine. In my
textbook it says you can declare and not include an initial size. Can anyone
help.
Thanks in advance.