|
-
May 11th, 2007, 06:38 AM
#1
Thread Starter
Hyperactive Member
[RESOLVED] Get and Set Property
Hi,
What are the Get and Set properties used for ??
for example :
Code:
Private Property Get xyz() As anything
Code:
Private Property Set xyz() As anything
Thanks
 If an answer to your question has been helpful, then please, Rate it! 
-
May 11th, 2007, 06:40 AM
#2
-
May 11th, 2007, 06:45 AM
#3
Re: Get and Set Property
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.
-
May 11th, 2007, 06:47 AM
#4
Thread Starter
Hyperactive Member
 If an answer to your question has been helpful, then please, Rate it! 
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|