validation procedure
Description
ValCharNotNULL: Validation-method that raises an error in case the character-field has the NULL value
Parameters
icTargetField | input | character | Value of the business field to validate. |
icTargetFieldName | input | character | Name of the business field to validate. |
icRowid | input | character | Contents of field tc_Rowid, if the target field is a field of a component temp-table. |
oiReturnStatus | output | integer | Return status of the method. |
Internal usage
QadFinancials
program code (program1/database.p)
/* ValCharNotNULL: Validation-method that raises an error in case the character-field has the NULL value */
if icTargetField = ?
then do :
<M-59 run SetMessage
(input #T-57'This field cannot have the unknown-value.':255(133401422)T-57# (icMessage),
input '' (icArguments),
input icTargetFieldName (icFieldName),
input '' (icFieldValue),
input 'E':U (icType),
input 3 (iiSeverity),
input icRowid (icRowid),
input 'qadfin-587302':U (icFcMsgNumber),
input '' (icFcExplanation),
input '' (icFcIdentification),
input '' (icFcContext),
output oiReturnStatus (oiReturnStatus)) in database>
assign oiReturnStatus = -1.
end. /* if icTargetField = ? */