Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Explain Get, Let, Set Properties.

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


Please Help Members By Posting Answers For Below Questions

what are the Types of LockEdits in RDO?

2275


Explain about an event-driven programming language?

1019


___,_____ and ____ container objects.

1673


How do I implement an accelerator key for a text box?

1562


How come I get a "No Current Record" error when I use a a Data Control on an empty table?

1580


How would you add elements and pictures to listitems in listview control?

2086


Is it possible to change menu runtime using API? If yes Specify the function names?

2042


What are the different procedures associated with the object?

1100


Which language is used in visual basic?

1089


How do I make my applications screen-resolution independent?

1556


What is instantiating?

1944


How do I speed up control property access?

1534


How would you map properties to controls by using ActiveX Control Interface Wizard?

2286


Which type of object requires this object?

2041


How can you Navigate from the DHTML application to another DHTML application? .

1912