Hi everyone, Can any one tell me about the uses of let and get property in VB and how to use it?

Normally used in classes, for setting retrieving property/variable in class. Think also activex, user controls, objects, and such.

From VB's help...

Set
Declares the name,arguments, and code that form the body of a Propertyprocedure, which sets a reference to an object.

Let
Declares the name,arguments, and code that form the body of a Property Letprocedure, which assigns a value to aproperty.

Get
Declares the name,arguments, and code that form the body of a Propertyprocedure, which gets the value of a property.


Good Luck

Normally used in classes, for setting retrieving property/variable in class. Think also activex, user controls, objects, and such.

From VB's help...

Set
Declares the name,arguments, and code that form the body of a Propertyprocedure, which sets a reference to an object.

Let
Declares the name,arguments, and code that form the body of a Property Letprocedure, which assigns a value to aproperty.

Get
Declares the name,arguments, and code that form the body of a Propertyprocedure, which gets the value of a property.


Good Luck

Thank you for sharing the information in brief.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.