If possible store the option used...
I am working with a huge app here where almost none of them say which option is
used...
blah = record
case AOption: integer of
0 : firstByte, secondByte, ThirdByte, fourthByte : byte;
1 : firstInt, secondInt : word;
2 : firstLong : longint
end;
end;
Regards
Paul McKenzie
=========================
Paul McKenzie
Jetbet II Developer
=========================
[EMAIL PROTECTED]
Ph: (04) 576-6822
T.A.B. National Office
106-110 Jackson Street
Petone
New Zealand
____________________Reply Separator____________________
Subject: Re: [DUG]: Union
Author: [EMAIL PROTECTED]
Date: 11/06/2001 15:19
> Sorry to interrupt the great Nic and Nev debate but ... ;-)
hehe, oddly enough, we got on rather well in real life.
>
> Does Delphi have an equivalent to the Union statement in C++.
>
> I have some C++ code I want to convert to Delphi....
>
um:
blah = record
case integer of
0 : firstByte, secondByte, ThirdByte, fourthByte : byte;
1 : firstInt, secondInt : word;
2 : firstLong : longint
end;
end;
or something like that.
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED]
with body of "unsubscribe delphi"(See attached file: att1.eml)
att1.eml