What is the difference between procedure and functions in VB?

Answer Posted / julie

procedure is a block of statements which performs a
particular task.In vb, procedures can be classified into
subroutines and functions.
Both subroutines and functions are block of statements.
The main difference between functions and subroutines is
that functions will execute some statments and return a
value. But subroutines will never return a value.
Both functions and subroutines can accept parameters.

Is This Answer Correct ?    23 Yes 5 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?

1732


Is visual basic case sensitive?

820


What is dao in vb?

704


What are the properties of datacontrol?

1721


VB ActiveX: Create a "drivelist"(D1) box, a "folderlistbox"(FLD1) that changes whenever D1 is changed , and a "FilelistBox"(FIL1) that is populated with the file lists under the selected directory in (D1).The file selected is stored in a variable "filename" along with the path. Question: How to use this activeX control in VC++ to get the selected filename?

1755


What is form in visual basic?

749


What is the use of Tabledef?

1762


How would you Create a Query Builder and Explain its uses

1650


How would you create Visual basic Document file?

1637


How to find the current record position in data control?

1672


How would you create your application in DHTML?

1711


What is "Reserved Error -1209"?

1577


How do I mimic a toggle button?

1214


Clear property is available in ____,___ control.

1278


What is the use of NEW Keyword? Explain.

1757