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 procedure and functions in VB?

Answer Posted / sweeta chandwani

1:-Procedure is a set of code,it simply performs the job(work) which is assigned to it...Function accepts the parameters & does the calculations.
2:-Procedure does not return a value...Function returns a value
3:-while defining the procedure 'sub' keyword is used...While defining the function,'function' keyword is used.
4:-Syntax for procedure:
sub procedure_name(arguements)
statements
End sub
---------------------------
Syntax for function:
function function_name(arguements) as return type
statements
End function

Is This Answer Correct ?    129 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the differences between ActiveX Dll and ActiveX Exe?

2534


Explain what is Visual basic?

1010


Can you create a Updatecascade, Deletecascade relation in Ms- Access?

2107


What is understand in resource tracking?

1385


How about Access 2.0 compatibility?

1447


What is the default workspace?

2222


How do I force a file dialogue box to reread the currect disk?

1445


Is there any way to pass a variable to a form apart from using global variables?

1533


Explain the working of templates?

1021


How do I create a window with a small title bar as in a floating toolbar?

1335


What are the tools in visual basic?

1061


What is Parser Bug?

2331


___ is a property to resize a label control according to your caption.

1573


How can you check whether a record is valid record or Invalid record using ADO control or Object?

1930


Does VB support pointers to functions?

1651