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
What are the properties of datacontrol?
What is ado data control in vb?
What are the tools in visual basic?
Is it posible to Create Tables Through Querydef?
What is the need of tabindex property is label control.
Timer control contains ________ no. of events.
What is ActiveX Dll and ActiveX Exe?
Scope of API's can be of types, what are they?
Explain about manipulating the recordset object
What is dao in visual basic?
Can a VB application be an OLE server?
What's the difference between MODAL and MODELESS forms?
How do you zoom in visual basic?
Explain OLE Drag and Drop?
Types of cursors in DAO?