LibreOfficeDev 24.2 Help
qNuUW‖Sets an object reference on a variable.
AQj9V‖
QfXmo‖[Set] variable = [New] object
DYFP7‖ variable: a variable or a property that requires an object reference.
iKwsW‖ expression: A computable combination of terms such as a formula or an object property or method.
j9GVn‖ object: Object that the variable refers to.
HBfCA‖ Nothing - Assign Nothing to a variable to remove a previous assignment.
4WqJK‖Set keyword is optional. Nothing is the default value for objects.
Sub ExampleSet
Dim obj As Object
Set obj = ThisComponent
Print obj.Title
obj = New com.sun.star.beans.PropertyValue
With obj
.Name = "key" : .Value = 594.34
Print .Name, .Value
End With
End Sub
9GzzW‖New creates UNO objects or class module objects, before assigning it to a variable.