What is the difference between procedure and functions in VB?

Answer Posted / shivangi pandya(cojit -->sy

*....Procedure is a set of code,it simply performs the job
(work) which is assigned to it....Function accepts the
parameters & does the calculations.

*....Fuction return the value,....but procedure doesn't
return the value

*....while defin the procedure 'sub' keyword is
used...While defining the function,'function' keyword is
used.

Is This Answer Correct ?    20 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

___ VB constant make the menu item in centre.

1552


What is file in vb?

677


by writing MACRO CODE,i want to retrive data from one spead sheet to another UI (workbook). control will search cell by cell for each row and load the data in another workbook(UI). ex: custdetails custname lastname locaton mobile pincode custdetails raj tony hyd 555555 521245 servcreqrd srvce# srvcename location srvcepincode servcreqrd 754 drilling hyd 521784 for the above example in the another workbook retrive data like this custname Raj srvce# 754 srvcepincode 521784. while retrieving data control will search cell by cell for each row.

1944


How can you Add API functions to your Application?

1542


What is the difference between adodc and adodb in vb?

766


Specify technical & functional architecture of your last 2 projects.

1829


How many ways you can access file using VB?

807


Scope of API's can be of types, what are they?

1735


How would you map properties to controls by using ActiveX Control Interface Wizard?

1668


What is executenonquery in vb net?

722


Timer control contains ________ no. of events.

1984


how to use telugu language in vb6? any unicode data is available for telugu or not?yes means how to use? my desired output is telugu only? i am doing project like(telugu calendar),my output should be print in telugu only? pls send me the solution with code?

3245


How would you create your application in DHTML?

1633


How many objects resides in ADO ?

1665


How do I get a bitmap picture in a field in an Access database?

1102