|
아래 소스는 입력 값이 1이면 모든 에디트 값을 clear 하는 내용입니다.
그러나 1,2개 에디트 값은 Clear 안되도록 하고 싶은데 코딩을 모르겠네요
알려주심 감사하겠습니다
AnsiString nameString("TEdit");
char compBuf[10];
TEdit * Edit;
if(zProcCd->Text == "1"){
for(int i=0; i < ComponentCount; i++)
{
//Check to see if the component is a TEdit
if (Components[i]->ClassNameIs(nameString))
{
//cast the component to a TButton *
Edit = (TEdit *)Components[i];
Edit->Text = "";
itoa(ComponentCount, compBuf, 10);
// Edit1->Text = AnsiString(compBuf) + AnsiString(" components");
}
}
}
|