Hi Group Members,
I have a Question regarding the Structure Members.

Can We define the Data Types for the Structure Members during Assembly Time?

Macro Something Par1,Par2
Struct Sample

ifnb <Para1>
Var1 Para1
Var2 Para2

Ends Sample

Endm Something

When invoked the Macro in the .DATA Segment with Different DATA Types, can these types be assigned to Structure Members??

Need Help rRegarding this..

Have A Nice Day
Posted on 2003-05-29 13:18:46 by prasad_86_86
If you have a preset group of data types you can use UNION which allows you to use multiple data types for a single element :

sample UNION
Var1 Para1
Var2 Para2
sample ENDS

Var1 and Var2 use the same storage space in the structure but can have different data types. All members of a UNION have an offset of zero from the beginning of the union so you can have multiple data types.
Posted on 2003-05-29 20:14:58 by donkey
Sure you can do this.
But if you tell us what your *really* trying to do here, we might
be able to offer a better solution.
Randy Hyde
Posted on 2003-05-30 15:11:49 by rhyde