Free Pascal Program Tutorial 15 - Procedures - Lazarus

Опубликовано: 24 Апрель 2026
на канале: SchoolFreeware
56,803
335

http://www.schoolfreeware.com

As your programs become more advanced, placing all the code in the main program can make the program more difficult to code. Slicing the program into sections can help. These sections are called by many names. The names include: subs, sub-modules, sub-procedures, and procedures. In pascal, these sections of code are called procedures.

The way that the procedures work, is that the main program, other procedure, or function will call the procedure. Once the procedure is called, the code within the procedure will run.