Forum Migration Notice
Update (2026-01-21): The user forums are now in read-only mode pending the data migration.

Update (2026-01-12): The user forums will be put into read-only mode on the 21st of January, 00:00 CET, to prepare for the data migration.

We're transitioning to a more modern community platform by beginning of next year. Learn about the upcoming changes and what to expect.

Call procedure from another module

How do I call a procedure in m1 from m2?

module m1
proc main()
     load "c:/m2.prg";
     %p:callme%;
endproc
proc yeah
     ...
end yeah
endmodule

module m2
proc callme()
     ...
    yeah; !this does'nt work however
     ...
endproc
endmodule

Comments

  • Hello robotverkl,

    try to change line : %p:callme%;

    to : %"m2:callme"%;

    with quotes.

    must work !

    Good luck.

  • Hi

    I think m2 shoud be a .MOD file.