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

What is DBSqlPassThrough?

2641


What about DLL calls that require callbacks?

982


What is the current version of Visual Basic for Windows?

1114


Can you create a tabletype of recordset in Jet - connected ODBC dbengine?

1531


___ argument can be used to make a menuitem into bold.

1285






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

946


What are the types of line styles available in Treeview Control?

1877


How can you Navigate from the DHTML application to another DHTML application? .

1621


Is visual basic case sensitive?

595


Explain about ADO control?

584


___ VB constant make the menu item in centre.

1336


How can I change the printer Windows uses in code without using the print common dialog? How can I change orientation?

1038


How would you attach pictures in column headers of List View Control?

1642


What is the default workspace?

1495


Why visual basic is used?

526