There are two procedures. First, procedure 1 and then 2 are described. When calling from procedure 1, procedure 2, an error occurs that procedure 2 is unknown. How to call procedure 2 of 1 if its implementation is written later?

    1 answer 1

    Alternatively, you can write something like this:

    Procedure Proc2(<параметры>); Forward; Procedure Proc1(<параметры>); Begin // реализация процедуры 1, в том числе и вызов процедуры 2 End; Procedure Proc2(<параметры>); Begin // реализация процедуры 2 End;