WebOct 14, 2014 · Delphi: "IndexOF" an Object in an Array Ask Question Asked 8 years, 5 months ago Modified 8 years, 5 months ago Viewed 7k times 1 I got an Array of TPoint. … WebMar 26, 2010 · Use String.IndexOfAny: private static readonly char [] SpecialChars = "!@#$%^&* ()".ToCharArray (); ... int indexOf = text.IndexOfAny (SpecialChars); if (indexOf == -1) { // No special chars } Of course that will loop internally - but at least you don't have to do it in your code. Share Improve this answer Follow answered Mar 26, 2010 at 11:44
Delphi Basics .Net : System.String.IndexOfAny method
WebApr 2, 2024 · Index := Text.IndexOfAny(Values: Text [, StartIndex: Integer]) Note. This method can be invoked without specifying the data type name. Parameters. Text Type: Text An instance of the Text data type. Values Type: Text The collection of characters to seek. http://www.delphigroups.info/2/7/765930.html pencil boxwood shrub ideas
System.Classes.TStringList.IndexOf - RAD Studio API
WebString.IndexOfAny Method (System) Microsoft Learn Skip to main content Learn Documentation Training Certifications Q&A Code Samples Assessments More .NET … WebDelphi is very efficient with sets type Tchars = #1..#255; TCharSet = set of #1..#255; function IndexOfAny(const Main:string; Charset:TCharset):integer; var Strptr:Pchar; … WebIndexOfAny(strArray); Console.WriteLine('Looking for h,o,d'); Console.WriteLine('Result = ' + result.ToString); Console.ReadLine; end. end. Hide full unit code: Guide= 1111111111 … medezin oferty pracy