|
제가 실수를 한거 같군요..^^;;
예를 든다는게 그만...죄송....해결은 하셨나염?
만약에 안하셨다면....^^
AnsiString CurrentFile;
bool IsAdd = true;
for(int i=0; i < ListBox1->Items->Count; i++)
{
AnsiString filename = ListBox1->Items->Strings[i];
if(filename==CurrentFile)
{
IsAdd = false;
break;
}
}
if(IsAdd)
{
ListBox1->Items->Add(CurrentFile);
}
|