SHARE
TWEET

Untitled

a guest Dec 11th, 2018 49 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. int zacatek_hledani;
  2.   int zbyva_do_konce;
  3.   int nalezena_pozice;
  4.  
  5.   if (redText->SelLength > 0)
  6.   {
  7.     zacatek_hledani = redText->SelStart + redText->SelLength;
  8.   }
  9.   else
  10.     zacatek_hledani = 0;
  11.     zbyva_do_konce = redText->Text.Length() - zacatek_hledani;
  12.     nalezena_pozice = redText->FindText(dlgNajdi->FindTextW, zacatek_hledani,
  13.       zbyva_do_konce, TSearchTypes() << stMatchCase);
  14.  
  15.   if (nalezena_pozice != -1)
  16.   {
  17.     redText->SetFocus();
  18.     redText->SelStart = nalezena_pozice;
  19.     redText->SelLength = dlgNajdi->FindText.Length();
  20.   }
  21.   else
  22.     ShowMessage("Ukončeno hledání v souboru - zvolený text nebyl nalezen !!!");
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top