Why? Because I've written a SUB that will be #INCLUDEd into multiple programs, and I want the SUB to know the name of the EXE that's calling it
It might be better to have the function(s) in this #INCLUDE file accept a parameter which tells it "who is calling me."
e.g
Code:
FUNCTION IncludedFunction (BYVAL %CALLER_NO, other params) AS something SELECT CASE AS LONG %CALLER_NO) CASE %CALLER_A do what you do when it's program 'A' making the call CASE %CALLER_B do what you do when it's program 'B' making the call ....
MCM
Leave a comment: