Re: convert TIdBytes to string

Giganews Newsgroups
Subject: Re: convert TIdBytes to string
Posted by:  Remy Lebeau (TeamB) (no.spam@no.spam.com)
Date: Tue, 29 Nov 2005

"Dave Kerr" <aida…@telus.net> wrote in message
news:0DD8E8C7A2E3E240aida…@telus.net...

> Hi, how do you convert
>
> TIdBytes  to a string?

Use the BytesToString() function in the idGlobal unit:

    function BytesToString(ABytes: TIdBytes; AStartIndex: Integer = 0;
AMaxCount: Integer = MaxInt): string;

Gambit

Replies

In response to

convert TIdBytes to string posted by Dave Kerr on Tue, 29 Nov 2005