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 used to add a menus at runtime?
How do I add a form in visual basic?
Is there a way to break long lines in VB code?
Explain about trees structures work.
It possible to call OLEDB?s Features directly in VB without using any control?
Draw Sequence Modal of RDO and Explain?
Why doesn't "my string" & Chr$(13) do what I want?
How about Access 2.0 compatibility?
What is the use of command Object?What are the various types of variables?
___,__,___ are the type of combo box?
Parts of ODBC?
___ is a property to resize a label control according to your caption.
what is the Property used to add a menus at runtime?
What is database vb?
How do I do Peek and Poke and other low-level stuff?