• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 560
  • Last Modified:

What ia a Variant Subtype?

In MS Access Help it says:
"The CDec() function does not return a discrete data type; instead, it always returns a Variant whose value has been converted to a Decimal subtype. "

I assume they are talking about a subtype of the Variant data type. What is a subtype?
0
Milewskp
Asked:
Milewskp
1 Solution
 
Jim Dettman (Microsoft MVP/ EE MVE)PresidentCommented:
<<I assume they are talking about a subtype of the Variant data type. What is a subtype?>>
Variants are tagged internally as to the value they currently contain.  That's what the "subtype" is.
and this question really is not worth 500 points...
JimD.
0
 
Rahul GuptaCommented:
"Variant" can be used store different kinds of data depending on how it is used. It can be grouped into a specific category of data based on its value. These categories of data are called subtypes.Examples of subtypes are: Byte,Integer, Long, Currency, String, Boolean etc.
0
 
Helen FeddemaCommented:
I think this dates back to a time long, long ago when there were a lot fewer specific data types.
0
 
MilewskpAuthor Commented:
Thanks Jim.
0

Featured Post

Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now