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

displaying integer values in a StringGrid

0 views
Skip to first unread message

Martin Crowley

unread,
Nov 27, 2003, 12:14:50 PM11/27/03
to
Hello,

Can anyone please tell me how to convert integers to Strings so that I can
display them in a StringGrid.
I'm sure it's very easy, but it's driving me mad!

Thanks,

Martin.


Hans Galema

unread,
Nov 27, 2003, 1:01:00 PM11/27/03
to
Martin Crowley wrote:

> Can anyone please tell me how to convert integers to Strings so that I can
> display them in a StringGrid.
> I'm sure it's very easy, but it's driving me mad!

int position = 123;

StringGrid1->Cells[2][3] = IntToStr ( position );

or
StringGrid1->Cells[2][3] = position;

or
AnsiString Pos = position;

StringGrid1->Cells[2][3] = Pos;

Hans.

Robert Lockwood

unread,
Nov 27, 2003, 12:59:58 PM11/27/03
to

"Martin Crowley" <ne...@crowley1.me.uk> wrote in message
news:3fc6...@newsgroups.borland.com...

> Can anyone please tell me how to convert integers to Strings so that I can
> display them in a StringGrid.
> I'm sure it's very easy, but it's driving me mad!


Try this:
String S = IntToStr(5);

--
Nate

http://www.kkjz.org/music/
America's Jazz Station
RNLoc...@SPOOFattglobal.net

Martin Crowley

unread,
Nov 27, 2003, 12:55:02 PM11/27/03
to
thanks to both you.

Martin.

"Hans Galema" <dontu...@dontusethis.nl> wrote in message
news:3fc6...@newsgroups.borland.com...

0 new messages