Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


What is the difference between a Sub and a Function?

Answers were Sorted based on User's Feedback



What is the difference between a Sub and a Function?..

Answer / suresh

Sub won?t return values
Fuction return values

Correct me If i was Wrong..

Is This Answer Correct ?    28 Yes 3 No

What is the difference between a Sub and a Function?..

Answer / mukesh

A function accepts any number of parameters (possibly
zero), does something with them, and returns a value.
A subroutine is performs an action, but doesn't return a
value.

There are two differences between a function and a
subroutine:
A)How they are invoked. B)How they are accessed.

A function call has the following syntax ::function (arg1,
arg2, ...)
where: function -->Is the name of the function. arg1,
arg2, ... Are the arguments.

A subroutine call has the following syntax ::subroutine
(arg1, arg2, ... {outputfield|'format'})
where: subroutine -->Is the name of the subroutine. arg1,
arg2, ... Are the arguments.
{outputfield|'format'} Is the name of the output field or
its format.

In addition, on some platforms, the functions are available
immediately; whereas, the subroutines are available in a
special subroutine library that you must access.

Is This Answer Correct ?    17 Yes 4 No

What is the difference between a Sub and a Function?..

Answer / sneha wankhede

Sub won?t return values
Fuction return values

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More Visual Basic Interview Questions

Does VB support object-oriented concepts? Explain..

3 Answers  


What is Mask Edit and why it is used?

0 Answers  


in ADO connection string if password is leave blank and all others are given. what will happen

1 Answers   eFunds,


what are the types of LockEdits in DAO?

0 Answers  


Timer control contains ________ no. of events.

0 Answers  


How to down load image properties.

0 Answers  


What is view Port?

1 Answers  


How can objects on different threads communicate with one another?

2 Answers  


How do I remove/change the picture property of a control at design time?

0 Answers  


Which property of textbox cannot be changed at runtime?

1 Answers  


What is form in visual basic?

0 Answers  


To validate a range of values for a property whenever the property values changes,which type of property procedure you use?

1 Answers  


Categories