Link to home
Start Free TrialLog in
Avatar of hidrau
hidrauFlag for Brazil

asked on

What is the advantage to have a function or procedure created inside another function or procedure?

Hello Guys,

This is an example:

procedure SumAllValue: Integer;
	   Function Sum_A_B(a, b : integer): Integer;
	   Begin 
	   End;
	Begin 

	  My code here calls the Sum_A_B(x,y)
	End;    

Open in new window


Is there any advantage using that way? Or would it be better to have it in a unit library or even create it for all my unit?

Is it only concept?

Thanks
Alexandre
ASKER CERTIFIED SOLUTION
Avatar of Mike McCracken
Mike McCracken

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of hidrau

ASKER

thanks a lot