Hi all
I have a program, which I can do and in that program the user can enter information if he had missed to enter it in the required field and he must to be informed about this option.
//verification of the PIN
Edit6->Text = "";
int digits[10];
AnsiString egn = Edit5->Text;
if(egn.Length() != 10)
{
Edit6->Text = "It should be limited to 10 digits PIN!";
Edit5->SetFocus();
Edit5->Text = "0000000000";
Edit5->SelectAll();
}
else
{
for(int i = 1; i<=10;i++)
{
AnsiString s = egn.SubString(i,1);
digits[i-1] = atoi(s.c_str());
}
checkEGN(digits,10);
}
// /добавяне
if (Edit1->Text != "" && ComboBox1->Text != "" && ComboBox2->Text != ""
&& Edit2->Text != "" && Edit4->Text != "" && ComboBox3->Text != "" ) {
ListBox1->Items->Add(Edit1->Text + " " + ComboBox1->Text + " "
+ ComboBox2->Text + " " + Edit2->Text + " " + Edit3->Text + " " +
Edit4->Text + " " + Edit6->Text + " " + ComboBox3->Text + " " + Edit7->Text );
}
else
Label11->Caption = " * ";
Label12->Caption = " * ";
Label13->Caption = " * ";
Label14->Caption = " * Required field! ";
Label15->Caption = " * ";
Label16->Caption = " * ";
Edit1->Text;
Edit1->SetFocus();
}
when I enter data appears "*" and it should not.How to do it?