compile subroutine security_err_msg( TableName, ErrType ) begin condition pre: post: end condition declare subroutine msg $insert msg_equates $insert logical $insert security_rights_equ MsgRec = '' MsgRec = -2 MsgRec = -2 begin case case ErrType = Read$ MsgRec = 'You do not have READ rights to the ':TableName:' table.' MsgRec = 'H' msg( '', MsgRec ) case ErrType = Write$ MsgRec = 'You do not have WRITE rights to the ':TableName:' table.' MsgRec = 'H' msg( '', MsgRec ) case ErrType = Edit$ MsgRec = 'You do not have EDIT rights to the ':TableName:' table you will not be able to change any data on existing records.' MsgRec = '!' msg( '', MsgRec ) case ErrType = Delete$ MsgRec = 'You do not have DELETE rights to the ':TableName:' table.' MsgRec = 'H' msg( '', MsgRec ) case ErrType = Print$ MsgRec = 'You do not have PRINT rights to the ':TableName:' table.' MsgRec = 'H' msg( '', MsgRec ) case otherwise$ end case