/*
StrPos example
The following example uses two edit controls and a button on a form. When the button is clicked, the text in the first edit control is searched for the text in the second edit control.
VCL example
*/
void __fastcall TForm1::Button1Click(TObject *Sender)
{
  if (StrPos(Edit1->Text.c_str(), Edit2->Text.c_str()))
    ShowMessage("Substring found.");
  else
    ShowMessage("Substring not found.");
}
CLX example
void __fastcall TForm1::Button1Click(TObject *Sender)
{
  if (StrPos(WideCharToString(Edit1->Text.c_bstr()).c_str(), WideCharToString(Edit2->Text.c_bstr()).c_str()))
    ShowMessage("Substring found.");
  else
    ShowMessage("Substring not found.");
} 
