Calling a function from an external procedure???

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
 
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.


---------------------------------
 
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) :)
 
Back
Top