Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Object-Pascal / Delphi-Language (https://www.delphipraxis.net/32-object-pascal-delphi-language/)
-   -   Delphi String in TColor umwandeln (https://www.delphipraxis.net/102248-string-tcolor-umwandeln.html)

HolgerCW 25. Okt 2007 15:05


String in TColor umwandeln
 
Hallo zusammen,

habe in einer Datenbank z.B. clRed stehen.

Möchte das jetzt in eine TColor - Variable schreiben. Wie wandele ich den String clRed in TColor um ?

Gruss

Holger

Phoenix 25. Okt 2007 15:06

Re: String in TColor umwandeln
 
Delphi-Referenz durchsuchenStringToColor

HolgerCW 25. Okt 2007 15:09

Re: String in TColor umwandeln
 
Super danke.

Warum heissen alle strtoint oder strtodate und dann kommt stringtocolor ?

Naja, aber klappt nun.

Gruss

Holger

DeddyH 25. Okt 2007 15:12

Re: String in TColor umwandeln
 
Wenn es Dich stört, bitteschön.
Delphi-Quellcode:
function StrToColor(const s: string): TColor;
begin
  Result := StringToColor(s);
end;

HolgerCW 25. Okt 2007 15:13

Re: String in TColor umwandeln
 
Alles klar. ;)

Habe mich nun aber schon dran gewöhnt.

Gruss

Holger


Alle Zeitangaben in WEZ +1. Es ist jetzt 01:24 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 by Thomas Breitkreuz