Answer Posted / vishal sinha
The Let property is used to assign values to the attributes
of a class. The following is an example of a Let property.
Public Property Let Minute(ByVal m As Integer)
If (m >= 0 And m < 60) Then
mMinute = m
Else
mMinute = 0
End If
End Property
With Get and Set, it's as simple as it sounds...
The Get property is similar to a function in that it returns
a value. It is used return the attributes of a class. The
following is an example of a Get Property called Minute that
returns the private data member, mMinute.
Public Property Get Minute() As Integer
Minute = mMinute
End Property
Objects may not be assigned values directly. Instead, an
object reference is required. With properties, this is
achieved using the Set property.
Public Property Set EndTime(ByVal t As CClock)
Set mFinish = t
End Property
| Is This Answer Correct ? | 6 Yes | 0 No |
Post New Answer View All Answers
Difference between Dynaset and Snapshot?
What are the important components of OLEDB?
How do I tell when an application executed using the SHELL command is finished?
How do you change the system menu (on the Control-Menu Box)?
What is meant by Establish Connection in RDO?
How do you make a TEXTBOX read only? Or, how do I prevent the user from changing the text in a TEXTBOX?
Is it posible to Create Tables Through Querydef?
To find the current recordposition in data control.
How would you create your application in DHTML?
Hi, I am USINg QTP tool for automation. Where VB Script have to use. I want to read a row from the table present in .Doc File and to paste in excel. Could you please assist me or give me the code to get it. I am new in this technology.
What are the Differenct Types of Instancing Property in ActiveX Dll and Exe?
___ is a property to resize a label control according to your caption.
What is meant by Establish Connection in RDO?
what are the Differences between ActiveX Control and Standard Control?
1s it posible to Create Tables Through Querydef?