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
Which property of textbox cannot be changed at runtime. What is the max size of textbox?
What is the Windows API?
What is FireHouse Cursors?
which property of menu cannot be set at run time.
What are the types of Error? In which areas the Error occurs?
How to control the file?
How can you Navigate from the DHTML application to another DHTML application? .
Differentiate between DAO,ADO and Adodc as in data access objects?
How do I use GetPrivateProfileString to read from INI files?
What is the latest version of visual basic?
How many ways you can access file using VB?
What is meant by Establish Connection in RDO?
How many types of API functions are available in VB?
What are the scope of the class?
Which type of object requires this object?