Login or Sign Up
Logging in...
Remember me
Log in
Or
Sign Up
Forgot password or user name?
Log in with
Search in titles only
Search in Visual Basic only
Search
Advanced Search
Forums
BYTES
Product Launch
Updates
Developer Toolkit
Today's Posts
Member List
Calendar
Home
Forum
Topic
Visual Basic
Difference between method and function !!!
Collapse
X
Collapse
Posts
Latest Activity
Photos
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
template
Next
Atran
Contributor
Join Date:
May 2007
Posts:
319
#1
Difference between method and function !!!
May 31 '07, 03:12 PM
What is Difference between method and function !!!
Thanks.
kadghar
Recognized Expert
Top Contributor
Join Date:
Apr 2007
Posts:
1302
#2
May 31 '07, 04:54 PM
A function is a method;
There are two kind of methods, de Sub and the Function. A sub wont give you a value in return. A function could do it.
i.e.
Sub MyFirstSub(you can optionally put here an input)
Command1.Captio n = "Click here"
End Sub
Public Function Sum(A, B as Double)
Sum = A + B
End Function
**that way Sum(2,3) is the same as writing 5
I hope this is not a bad joke (like the difference between the toilet paper and the shower towel), and if it is, i hope you're not laughing 2 loud.
Comment
Post
Cancel
Previous
template
Next
Working...
Yes
No
OK
OK
Cancel
👍
👎
☕
Comment