Checked the code:
Code: Select all
for(k=0; k<Choice3->GetCount(); ++k)
{
if(Choice3->GetString(k) == Choice1->GetStringSelection())
{
wxMessageBox( _("Address already used!"), _("Error"), wxICON_ERROR);
return -1;
}
}