Hi,
What are the Get and Set properties used for ??
for example :
Code:Private Property Get xyz() As anything
ThanksCode:Private Property Set xyz() As anything
Printable View
Hi,
What are the Get and Set properties used for ??
for example :
Code:Private Property Get xyz() As anything
ThanksCode:Private Property Set xyz() As anything
Let not Set.
Both Let And Set can be used. It depends on what you are doing.
Properties are the primary method by which objects store data and make it available to the program. In Visual Basic, you add properties to a class definition by using Property Get and Property Set procedures.
A Property Let procedure for setting the property value (if the variable will hold an object reference, you will use a Property Set procedure instead)
A Property Get procedure is used to retrieve the property value.
Thank u hack !!!