Skip to content

OlimilO1402/COM_VVariant

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

COM_VVariant

The incredible VVariant class

GitHub GitHub release (latest by date) Github All Releases Follow

Project started in aug. 2022.
Have you ever encountered the runtime-error 458: "Variable uses a datatype of automation not supported in Visual Basic"? Have you ever discovered the VT_-constants resp the VARENUM-enumeration, compared to the VbVarType-enum, there are so many more types. The VVariant class is the answer and gives a solution to these problems.
Why the name VVariant:
If I want to name a class but there already is a VB-keyword, I simply repeat the first letter, so it'll pop up at the same place in the alphabet. Moreover the two V are standing for Virtual-Value-Variable-Variant. But not enough, there is also a twin-brother to the VVariant class the class VVariantPtr which is a pointer to a variant. The class VVariantPtr is indeed a so called "weak-pointer" to a variant, so please know what you do and handle it with care.

Public Sub Test()
    Dim v1 As VVariant: set v1 = MNew.VVariant(123)
    MsgBox v1.VarTypeToStr
End Sub

COM_VVariant Image

About

The incredible VVariant and VVariantPtr classes

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published