Are varEmpty and varNull equivalent?
No,
varEmpty and
varNull are not equivalent.
varEmpty is a
Variant that is initialized, but has no value assigned. A variant with
varNull is a
Variant that is explicitely
Null.
Can the return value be set to 0 when vtype=1?
Will there be additional side effects?
Do I need to open a bug with this?
It indeed seems like an oversight that
varNull isn't handled in
VariantToBCD so you should indeed open a bug report. Best provide an example that shows that
VariantToBCD doesn't work correctly when you pass in a
Variant that is
Null.