Procedures before the calls?
Posted: Sun Jun 07, 2020 10:14 pm
I have a program with a procedure:
This code works, but this one, does not:
I used (on other languages) to place PROCEDURES at the end of the source, for easier readiblity, but this has no sense for me. Is this really how PB works, or it is just me missing something?
My real problem/program is that now I have a proyect with multiples sources (listed in this order in proyect window)
SIDE1.pb
MAIN.pb
SIDE2.pb
Main can call procedures in SIDE1, but not in SIDE2 (and SIDE1 can not call procedures in SIDE2). Also, I dont know how to change the "order of compilation". If I add another source to my proyect, it is added in the last position, making it useless for the rest of the sources...
Code: Select all
PROCEDURE TEST()
debug("Test")
ENDPROCEDURE
TEST()Code: Select all
TEST()
PROCEDURE TEST()
debug("Test")
ENDPROCEDUREMy real problem/program is that now I have a proyect with multiples sources (listed in this order in proyect window)
SIDE1.pb
MAIN.pb
SIDE2.pb
Main can call procedures in SIDE1, but not in SIDE2 (and SIDE1 can not call procedures in SIDE2). Also, I dont know how to change the "order of compilation". If I add another source to my proyect, it is added in the last position, making it useless for the rest of the sources...