Procedure and Function Calls

A procedure call consists of the name of a procedure (with or without qualifiers), followed by a parameter list (if required). Examples include

PrintHeading; Transpose(A, N, M); Find(Smith, William); Writeln('Hello world!'); DoSomething(); Unitl.SomeProcedure; TMyObject.SomeMethod(X,Y);

With extended syntax enabled ({$x+}), function calls, like calls to procedures, can be treated as statements in their own right:


When you use a function call in this way, its return value is discarded.

For more information about procedures and functions, see Procedures and functions.

Project Management Made Easy

Project Management Made Easy

What you need to know about… Project Management Made Easy! Project management consists of more than just a large building project and can encompass small projects as well. No matter what the size of your project, you need to have some sort of project management. How you manage your project has everything to do with its outcome.

Get My Free Ebook

Post a comment