Re: Word to Byte (chop off MSB)



> Note that these split _all_ integer types "in two", no need for separate byte and word
> variants

That's OK for Lo() but Hi() always returns bits 15 - 8 as a byte, so
don't use it on a DWord unless that's what you want. That's what Delphi
help says.

Alan Lloyd

.



Relevant Pages

  • Direct Sound
    ... / teaching Direct Sound (mono) with Delphi. ... Alan Lloyd ... Prev by Date: ...
    (comp.lang.pascal.delphi.misc)
  • Re: Flash Questions
    ... using Flash files in Delphi. ... Alan Lloyd ... Prev by Date: ...
    (comp.lang.pascal.delphi.misc)
  • Re: Starting another program
    ... Delphi does that sort of thing for you. ... Alan Lloyd ... Prev by Date: ...
    (alt.comp.lang.borland-delphi)
  • Re: callback function immediatly called with an empty buffer
    ... But its quite strange, I send it as a simple ... and that is how the parameter is declared in Delphi. ... Alan Lloyd ... Prev by Date: ...
    (microsoft.public.win32.programmer.mmedia)
  • Re: Status Var
    ... -1 is outside the range for a DWord. ... If the API examples are in C then that is not so strongly typed as ... Alan Lloyd ... Prev by Date: ...
    (alt.comp.lang.borland-delphi)