Function game_start()
{
Listbox_Contacts.AddItem("Contact1");
Listbox_Contacts.SelectedIndex=-1;
}
Function repeatedly_execute()
{
String CurrentContact = Listbox_Contacts.Items[Listbox_Contacts.SelectedIndex];
If(CurrentContact=="Contact1")
{
gContactGUI.Visible=true;
}
}
The error is: Invalid index specified.