Re: ReadWord????

Giganews Newsgroups
Subject: Re: ReadWord????
Posted by:  Mark Williams (mark@{removethis}
Date: Fri, 29 Apr 2005

You can cast a smallint to word provided the smallint value is not less than
0.  If it is, you won't receive an error, but the word value will be 65526,
ie the maximum value of a word type.

"Filipe" <fili…> wrote in message
> Hello, I'm implementing the OSCAR(ICQ/AOL) protocol using INDY and I'm a
>  bit confused. In some points, I must read a word, but the
> TIdTCPConnection only provides methods to reading smallint that is
> 16-bit, like the WORD type. My question is if may I do a cast for
> smallint to word without problems?



In response to

ReadWord???? posted by Filipe on Fri, 29 Apr 2005