/*
FileSearch, ShowMessage example
The following example uses an edit control and a button on a form. When the button is clicked, the current directory is searched for the filename specified in the edit control. A message box indicates whether the file is found.
*/ 
void __fastcall TForm1::Button1Click(TObject *Sender)
{
  AnsiString asFileName = FileSearch(Edit1->Text, GetCurrentDir());
  if (asFileName.IsEmpty())
    ShowMessage(AnsiString("Couldn't find ") + Edit1->Text + ".");
  else
    ShowMessage(AnsiString("Found ") + asFileName + ".");
} 
