07-03-2015, 03:20 PM
hi,
there is a way to don't execute a command if a function is not called inside the program, but externally (EXPORT...)?
I've a code like this one:
I would like to execute changeData(); only if ascendant() is called inside a program (to return to its menu, and so on) but not when the function is called externally (passing parameters...).
In other words: the function should ask itself: "who is calling?"...
Thank you
Salvo
there is a way to don't execute a command if a function is not called inside the program, but externally (EXPORT...)?
I've a code like this one:
Code:
EXPORT ascendant(...)
BEGIN
// routine...
ch:= MSGBOX("Another calculation?", 1);
IF (ch<>0) THEN changeData(); END;
END;
I would like to execute changeData(); only if ascendant() is called inside a program (to return to its menu, and so on) but not when the function is called externally (passing parameters...).
In other words: the function should ask itself: "who is calling?"...
Thank you
Salvo