Sub Procedure
|
|
Function Procedure
|
- Sub procedure does not return a value.
|
|
- Function procedure returns a value.
|
- Sub procedure name does not accept data type identifier like %, $, !, &, #.
|
|
- Function procedure name accepts the data type identifier like %, $, !, &, #.
|
- Sub procedure is called using CALL statement.
|
|
- Function procedures are called using by statement method or using as expression.
(using print statement).
|
- Its name can not be used in an expression.
|
|
- Its name can be used in an expression.
|