SysUtilsStrScan (C++)

From RAD Studio Code Examples
Jump to: navigation, search

Description

The following example uses an edit control and a button on a form. When the button is clicked, the text in the edit control is searched for a wildcard (asterisk character).

Code

void __fastcall TForm1::Button1Click(TObject *Sender)
{
  if (StrScan(Edit1->Text.c_str(), '*'))
    ShowMessage("Wildcard found.");
  else
    ShowMessage("Wildcard not found.");
}

Uses