Does VB a similar data type like the C++ Union type 
Author Message
 Does VB a similar data type like the C++ Union type

I am looking for a user defined datatype that works like the C++ Union.
I want a data type that can holds one value, but different data types. A
Variants does not work since I use user defined data types.

I appriciate any help

Thanks

Marc



Sun, 03 Dec 2000 03:00:00 GMT  
 Does VB a similar data type like the C++ Union type

Look at VB's polymorphic capabilities. Define an interface and implement it
for all types.

Quote:

>I am looking for a user defined datatype that works like the C++ Union.
>I want a data type that can holds one value, but different data types. A
>Variants does not work since I use user defined data types.

>I appriciate any help

>Thanks

>Marc



Sun, 03 Dec 2000 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Does VB a similar data type like the C++ Union type

2. problem of converting C's union type to VB's a data type

3. problem of converting C's union type to VB's a data type

4. Union Data type in VB??

5. Passing of C language's union data type in VB application

6. C data type vs. VB Data type

7. VB Data Types - C Data Types

8. Prob. w\ TYPE data type: err:Type Mismatch

9. VB 3.0 data types from Borland C++

10. Declaring C-Language Union and Bit-field data types in Visual Basic

11. Declaring C-Language Union and Bit-field data types in Visual Basic

12. Get error: Disallowed implicit conversion from data type varchar to data type money

 

 
Powered by phpBB® Forum Software