Delphi Tips Trick

For Newbie

Iklan Responsive Atas

LightBlog
Responsive Ads Here

Thursday, 3 November 2011

How to convert a decimal number to a hexadecimal number in Delphi

decimal to hexa decimal

How to convert a decimal number to a hexadecimal number, for example 255 to FF?

this is the way

Var i : integer;
s : string;
begin
i := 255;
s := IntToHex(i,2);
showmessage(s);

No comments: