declaration without type &'PrintFormat' - unexpected token, probably type is missing?

 

How can I fix these errors?

Files:
Capture.PNG  17 kb
 
  1. Don't post pictures of code, they are generally too hard to read.

    Please edit your (original) post and use the CODE button (or Alt+S)! (For large amounts of code, attach it.)
          General rules and best pratices of the Forum. - General - MQL5 programming forum #25 (2019)
              Messages Editor
          Forum rules and recommendations - General - MQL5 programming forum (2023)

  2. Post all relevant code. Your problem is above those lines.
 
William Roeder #:
  1. Don't post pictures of code, they are generally too hard to read.

    Please edit your (original) post and use the CODE button (or Alt+S)! (For large amounts of code, attach it.)
          General rules and best pratices of the Forum. - General - MQL5 programming forum #25 (2019)
              Messages Editor
          Forum rules and recommendations - General - MQL5 programming forum (2023)

  2. Post all relevant code. Your problem is above those lines.
thanks for your response
 
It looks like you are calling PrintFormat from the global scope. Put PrintFormat inside some function/method