![]() |
Re: If-Schleifen-Haufen zusammenfassen
Zitat:
Delphi-Quellcode:
Gruß Hawkeye
function InArray (const s: string;
const A: array of string; CaseSensitive: Boolean = False): Boolean; var i : integer; Same : function (const s1, s2: string): Boolean; begin if CaseSensitive then Same := AnsiSameStr else Same := AnsiSameText; Result := False; for i := 0 to High(A) do if Same(s, A[i]) then begin Result := True; Break; end; end; |
Alle Zeitangaben in WEZ +1. Es ist jetzt 12:00 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz