| |

VerySource

 Forgot password?
 Register
Search
View: 648|Reply: 3

What is the main function of VARIANT data type?

[Copy link]

1

Threads

2

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

Post time: 2020-2-1 14:00:01
| Show all posts |Read mode
What is the main function of the VARIANT data type?
Seen in MSDN: Variant serves as the universal data type. This means that you can store data of any type in a variable of type Variant.

I don't feel very clear, please help explain it in detail, thank you.
Reply

Use magic Report

0

Threads

4

Posts

5.00

Credits

Newbie

Rank: 1

Credits
5.00

 China

Post time: 2020-3-15 09:15:01
| Show all posts
Com uses more of this type. This data type can represent multiple data types, such as
int, uint, etc., there is a VARTYPE to indicate which data type, and then according to the data type
Then get the corresponding data (long-VARIANT.lVal, BYTE-VARIANT.bVal)
Reply

Use magic Report

0

Threads

55

Posts

32.00

Credits

Newbie

Rank: 1

Credits
32.00

 China

Post time: 2020-3-16 15:45:01
| Show all posts
Is a data structure, the inner members are a variety of data types, mainly used for database interfaces.
Reply

Use magic Report

0

Threads

3

Posts

4.00

Credits

Newbie

Rank: 1

Credits
4.00

 China

Post time: 2020-4-1 09:45:01
| Show all posts
It is a common data type in window software system. It is mainly used to provide a common between static data type programming languages ​​such as c / c ++, vc and dynamic data type languages ​​such as vb, etc. during automation (COM) programming Data types to solve the problem of data exchange between languages. VARIANT is a self-describing data type
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list