
Q: variant data type with user defined data type
Quote:
>Depending on the code, I need Body to point to Body_1 or Body_2. As I found
>out last night I can't put a variant point to a user definet data type. The
>option I see now is to use a class instead of a user defined data type. I
>would like to know if using a class it is going to work ? Is it going to be
>slower ? Is there a better solution ?
If you are using only two different records, you can allocate an array of
each Type, and have the type indicator and array index in the Message
record. This will be at least the fastest implementation. You can wrap the
code in a class, but using classes always will slow down handling and
access to the data.
DoDi