Differences between SUB-procedure and FUNCTION procedure

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

Share :

Twitter
Back To Top

facebook main

counter

Powered by Blogger.