RobotStudio event

Call procedure from another module

Options

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

  • V4D0R
    Options

    Hello robotverkl,

    try to change line : %p:callme%;

    to : %"m2:callme"%;

    with quotes.

    must work !

    Good luck.

  • claudio
    Options
    Hi

    I think m2 shoud be a .MOD file.