Reference Types

A reference type is also known as an Object data type.
When you want to assign something to a reference type you must use the Set statement.

ClassA Class module is a special type of module that lets you create your own customised objects.
CollectionA collection is a special type of object that represents a group of objects.
ObjectThe object data type contains a reference (or an address) to an actual object.


Dim oEmployee As class_Employee 
Set oEmployee = New class_Employee


Dim colEmployees As New Collection 
Call colEmployees.Add(Item:="item", Key:="key")


Dim oMyObject As Object 
Set oMyObject = Library.ClassName

© 2023 Better Solutions Limited. All Rights Reserved. © 2023 Better Solutions Limited TopPrevNext