Operation_Not_Allowed - BaseData_Set

Executes the error command with the passed in error number. Intended for augmentation

Type: Procedure

Parameters: Integer iError

ParameterDescription
iErrorError number to disallow


Syntax
Procedure Operation_Not_Allowed Integer iError

Call: Send Operation_Not_Allowed iError


Description

By default, the Operation_Not_Allowed procedure simply executes the error command with the passed in iErr. You may, however, augment it to substitute other messages for iErr defined in DataFlex, or undefined.

Sample

Procedure Operation_Not_Allowed Integer iError
    If (iError=DFERR_NO_DELETE_RELATED_RECORDS_EXIST) ;
        Error iError ". Customer has activity."
    Else ;
        Forward Send Operation_Not_Allowed iError
End_Procedure