I don't think there is an easy way to declare constants.
I could do this by creating my own DLL for a user-defined function, and an lmake function for each constant.
I think the idea of โโusing generators as "global" constants is more attractive.
But you can make a "local constant" to make the code more understandable:
CREATE TRIGGER AD_PRJ_PROJECTS FOR PRJ_PROJECT ACTIVE AFTER DELETE POSITION 1 AS DECLARE VARIABLE DELETE_CONSTANT INTEGER; BEGIN DELETE_CONSTANT = 1; EXECUTE PROCEDURE SP_ADD_HISTORY 'PRJ_PROJECT', DELETE_CONSTANT; END;
source share