"An attempt to call a field (rather than a method)" What is the difference between these two???
simple english please I'm confused enough as it is!
A field is a variable that resides inside an object.
A method is a function that resides inside an object.
Notice that methods have the parenthesis at the end. These are used to enclose paramenters.
They are left empty if the method does not expect parameters.
as scru mentioned a field aka property, variable or parameter that holds a value or collection of values. You can assign values to and get values from these types of objects.
A method on the otherhand is a piece of executable code. It may return nothing (void) or return a value. Typically you will use a method to cause something to happen such as populate some component on your form, or carry out any number of tasks.
To understand some of these basics, you should grab one of the many wonderful programming books. All programming languages have the basic concepts of storing data in some variable, and calling methods (also called functions and procedures in different languages).
hi i am using vb.net multidimensional arrays and i am getting the nearest or closest number i just want to ask if my code was correct or not ? for example i have an input of 13000 and nearest number should be on col 6 can you please help me ...
I am developing a simple job card creator application with VB.net 2012, using Access 2010 as database.
The code I have generated to write data from a datagridview to the database table is successfully saving the data, but with an error "Parameter @name has no default value". The ...
write a C++ program which take inputs from the user/keyboard and calculate his ZAKAT.
get the input from user may include
-Amount invested in business
-Amount given to other business partners as loan
-Amount payable to others