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
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