difference between a method and a poperty

Status
Not open for further replies.

rookie1010

Fully Optimized
Messages
2,069
Hi
could some one tell me what the difference between a method and a property is

e.g. listbox properties are listindex, sorted, text
listbox method's are additem, clear, removeitem
 
Method is an action carried out on the control, while the info available about the cotrol forms its properties.
Eg if we say lstBox.Text we are using its propety text which we can see or read. But if there is an array arArray.Sort will sort the array.
Methods are used to bring about changes in the control, while the property is the info specific to that control.
 
Status
Not open for further replies.
Back
Top Bottom