Hi Guys,
Firstly, as it's my first post, a big hello!
I'm having problems using variables outside of an IF statement in a sub. Although I have declared them, VS tells me that I havn't when referencing them, code as follows:
I have tried declaring them outside of the IF statement but then the arrays don't work...I recieve a error about number of indicies being less than number of dimensions.
I am a beginner in the world of VB.net so this is probably an easy one. Thanks in advance for your response.
James
Firstly, as it's my first post, a big hello!
I'm having problems using variables outside of an IF statement in a sub. Although I have declared them, VS tells me that I havn't when referencing them, code as follows:

I have tried declaring them outside of the IF statement but then the arrays don't work...I recieve a error about number of indicies being less than number of dimensions.
I am a beginner in the world of VB.net so this is probably an easy one. Thanks in advance for your response.
James
Last edited: