Re: TStringGrid
- From: erewhon@xxxxxxxxxx (J French)
- Date: Mon, 11 Apr 2005 07:14:31 +0000 (UTC)
On 9 Apr 2005 23:03:37 -0700, alanglloyd@xxxxxxx wrote:
<snip>
>procedure WriteStreamStr(Stream : TStream; Str : string);
>{writes a string to the stream}
>var
> StrLen : integer;
>begin
> {get length of string}
> StrLen := Length(Str);
> {write length of string}
> Stream.WriteBuffer(StrLen, SizeOf(Integer));
> {write characters}
> Stream.Write(Str[1], StrLen);
Alan,
I'm curious that you use both Stream.Write and Stream.WriteBuffer
- is there a particular reason ?
(Curiousity - not criticism)
.
- Follow-Ups:
- Re: TStringGrid
- From: alanglloyd
- Re: TStringGrid
- References:
- TStringGrid
- From: Anthony
- Re: TStringGrid
- From: alanglloyd
- TStringGrid
- Prev by Date: Re: TStringGrid
- Next by Date: Re: TStringGrid
- Previous by thread: Re: TStringGrid
- Next by thread: Re: TStringGrid
- Index(es):
Relevant Pages
|