S student New Member Jul 21, 2004 #1 Hi, How can I call a function, defined in proc 1, from external proc 2? Please help.... Thanks in advance!
Hi, How can I call a function, defined in proc 1, from external proc 2? Please help.... Thanks in advance!
B bendaluz2 Member Jul 21, 2004 #2 i'd define the function in an include file, then include it in both procedures. then its maintainable in one place, but both procedures can access it
i'd define the function in an include file, then include it in both procedures. then its maintainable in one place, but both procedures can access it
A AlterLife New Member Jul 22, 2004 #3 Try this: -------------------------------- /* File: extproc.p */ procedure t2: disp "here". end. -------------------------------- /* File: main.p */ def var t as handle. run extproc.p persistent set t. run t2 in t. ---------------------------------
Try this: -------------------------------- /* File: extproc.p */ procedure t2: disp "here". end. -------------------------------- /* File: main.p */ def var t as handle. run extproc.p persistent set t. run t2 in t. ---------------------------------
J johnnebi New Member Jul 22, 2004 #4 Actually, you have at least 3 options: 1) Use the include file approach (.. groan ) 2) Use the MAP-TO option when defining functions (booo ...) 3) Use a SUPER PROCEDURE!!! (crowd roars it's approval)
Actually, you have at least 3 options: 1) Use the include file approach (.. groan ) 2) Use the MAP-TO option when defining functions (booo ...) 3) Use a SUPER PROCEDURE!!! (crowd roars it's approval)