pl.comp.lang.delphi
[Top] [All Lists]

Re: Absolute

Subject: Re: Absolute
From: "Andrzej"
Date: Mon, 14 Jul 2008 11:35:17 +0200
Newsgroups: pl.comp.lang.delphi

A nie prościej zrobić to na rzutowaniu typów?

  type TLongIntCast = record
    case Integer of
     0: ( Value: Longint );
     1: ( Values: array[0..3] of byte );
  end;

var
  a: LongInt;
...
a := 1234;

TLongIntCast(a).Values[0] := 1
TLongIntCast(a).Values[0] := 2



pozdrófka...
Andrzej


<Prev in Thread] Current Thread [Next in Thread>
Privacy Policy