|
-
Jan 23rd, 2008, 06:33 AM
#1
Thread Starter
Fanatic Member
[RESOLVED] [2005] Public Property (Get, Set)
Code:
Public Property Property_Name(Parameters)
Get
' Code here
End Get
Set
' Code here
End Set
End Property
And this code
Code:
Public WriteOnly Property Propert_Name()
Set(Parameters)
' Code Here
End Set
End Property
What does this code all about ? is it required ? how it will needed ?
-
Jan 23rd, 2008, 09:49 AM
#2
Thread Starter
Fanatic Member
Re: [2005] Public Property (Get, Set)
-
Jan 23rd, 2008, 09:53 AM
#3
Re: [RESOLVED] [2005] Public Property (Get, Set)
Please post your solution.
It could help someone else with the same or similiar problem.
Thanks.
-
Jan 23rd, 2008, 10:10 AM
#4
Thread Starter
Fanatic Member
Re: [RESOLVED] [2005] Public Property (Get, Set)
 Originally Posted by Loraine
Code:
Public Property Property_Name(Parameters)
Get
' Code here
End Get
Set
' Code here
End Set
End Property
And this code
Code:
Public WriteOnly Property Propert_Name()
Set(Parameters)
' Code Here
End Set
End Property
The code depict there are implemented with a special type of procedure that contains a Get and Set section. The Set section of the procedures is invoked when the application attempts to set the property's value, and the Get section is invoked when the application requests the property's value. The value passed to the property is usually validated in the Set section and, if valid, is stored to a local variable. The same local variable's value is returned to the application when it requests the property's value, from the property's Get section.
Well this is base on what i found in the code when im trying it. And this is the way i explain it. Check the other point of view base on this property. Hope this will help
-
Jan 23rd, 2008, 10:39 AM
#5
Re: [RESOLVED] [2005] Public Property (Get, Set)
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
|