Re: Prüfen ob String = Farbcode ist
ihr habt vergessen, das clblack und so zeugs auch dazugehört. einfach mit stringtocolor probieren und mit try except absichern:
Delphi-Quellcode:
function iscolorcode(s:string):boolean;
begin try begin stringtocolor(s); result:=true; end except result:=false; end; end; |
Re: Prüfen ob String = Farbcode ist
Zitat:
|
Re: Prüfen ob String = Farbcode ist
Ne der Compiler nimmt auch clBlack usw...
Aber das brauche ich nicht zu berücksichtigen, denn ich brauche nur die eingabe von HTML Farbcodes prüfen |
Alle Zeitangaben in WEZ +1. Es ist jetzt 17:54 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz