Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Whats the difference between a Variant array and an array of Variants?

0
Posted

Whats the difference between a Variant array and an array of Variants?

0

A Variant is a special data type that can contain any kind of data — a single value, or an array of values (that is, a Variant array). The code below creates a Variant that contains an array. Dim X as Variant X = Array(30, 40, 50) A normal array can contain items of a specified data type, including non-typed Variants. The statement below creates an array that consists of 12 Variants. Dim X (0 to 2) as Variant Although a Variant containing an array is conceptually different from an array whose elements are of type Variant, the array elements are accessed in the same way.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123