Calling a function from an external procedure???

student

New Member
Hi,

How can I call a function, defined in proc 1, from external proc 2?
Please help....

Thanks in advance!
 

bendaluz2

Member
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
 

AlterLife

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


---------------------------------
 

johnnebi

New Member
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) :)
 
Top