Exception while updating the array

sathya.cs

Active member
Joined
May 24, 2009
Messages
31
Programming Experience
Beginner
I am getting Error while updating the sting array Settings() which is Declared as Global. I am getting Array IndexOutofBound exception in runtime, what is the error in the code?

sub ChangeWhite()

t1.BackColor = Color.White
WhitToolStripMenuItem.Checked = True
'Unchecking Others
BlueDefaultToolStripMenuItem.Checked = False
PinkToolStripMenuItem.Checked = False
YellowToolStripMenuItem.Checked = False
Settings(0) = "white"--------------->(Exception)Updating the array
savePersistData()------->Saving the array as text file

End Sub
 
How are you loading the array?

It would appear as though it is empty when you are trying to manipulate it (in other words, there is nothing to manipulate)
 
Back
Top