troubleshooting Question

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

Avatar of hidrau
hidrauFlag for Brazil asked on
Delphi
2 Comments1 Solution235 ViewsLast Modified:
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;    

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
Join our community to see this answer!
Unlock 1 Answer and 2 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 2 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros