COMPILE FUNCTION OBJ_OVERRIDE_LOG(Method, Parms) DECLARE FUNCTION Get_Status, Msg, Utility, obj_Tables, NextKey, obj_Prod_Spec, Send_Dyn DECLARE FUNCTION Environment_Services, Datetime, NextKey DECLARE SUBROUTINE Set_Status, Msg, obj_Tables, Send_Dyn DECLARE SUBROUTINE ErrMsg $Insert OVERRIDE_LOG_EQUATES ErrTitle = 'Error in Stored Procedure "OBJ_OVERRIDE_LOG"' ErrorMsg = '' IF NOT(ASSIGNED(Method)) THEN ErrorMsg = 'Unassigned parameter "Method" passed to subroutine' IF NOT(ASSIGNED(Parms)) THEN Parms = '' IF ErrorMsg NE '' THEN Set_Status(-1,ErrTitle:@SVM:ErrorMsg) RETURN '' END Result = '' BEGIN CASE CASE Method = 'Create' ; GOSUB Create CASE 1 END CASE IF ErrorMsg NE '' THEN Set_Status(-1,ErrTitle:@SVM:ErrorMsg) END RETURN Result * * * * * * * Create: * * * * * * * LogDTM = Datetime() Record = Parms Table = Record Key = Record orUser = Record orComment = Record orDTM = LogDTM orCategory = Record RecKey = Nextkey('OVERRIDE_LOG') orRec = '' orRec = Table orRec = Key orRec = orUser orRec = orComment orRec = orDTM orRec = orCategory obj_Tables('WriteRec','OVERRIDE_LOG':@RM:RecKey:@RM:@RM:orRec) Result = RecKey