Computer Forums

Member Login

Remember Me? Sign Up! | Forgot Password
 
Slogan
 
Computer Forums > Programmers Lounge > Programming Discussions » difference between a method and a poperty
Closed Thread
Old 12-17-2004, 12:50 PM   #1 (permalink)
 
Master Techie

Join Date: Mar 2004

Posts: 2,069

rookie1010

Default difference between a method and a poperty

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
rookie1010 is offline  
Old 12-20-2004, 03:00 AM   #2 (permalink)
 
Junior Techie

Join Date: Dec 2004

Posts: 88

developer

Default

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.
__________________
Somewhere I Belong...
developer is offline  
 
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On