Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to save a color to a database

58 views
Skip to first unread message

Rudy

unread,
Nov 29, 2006, 7:43:00 AM11/29/06
to
hi,

I have a mysql database and i want to save and retrieve colours to and from
it. What datatype would the column need to be. I made it a string, but i
couldnt find a way to convert a TColor to a string.

many thanks
Rudy


Robert Marquardt

unread,
Nov 29, 2006, 7:56:30 AM11/29/06
to
Rudy wrote:

TColor is in fact Integer so store it as Integer.

Rudy

unread,
Nov 29, 2006, 10:11:31 AM11/29/06
to
Perfect thanks a mill

Rudy
"Robert Marquardt" <robert_m...@gmx.de> wrote in message
news:456d...@newsgroups.borland.com...

Liz

unread,
Nov 29, 2006, 10:09:19 AM11/29/06
to
Rudy wrote:

bds has a colortostring function in the graphics unit.

so

caption:=ColorToString(clgreen);

gives

clgreen :)


--
Liz the Brit
Delphi things I have released: http://www.xcalibur.co.uk/DelphiThings

Rudy

unread,
Nov 30, 2006, 7:12:36 AM11/30/06
to
Thanks for the information

Rudy

"Liz" <liz_want...@xcalibur.nospam.co.uk> wrote in message
news:xn0euart9...@newsgroups.borland.com...

0 new messages