project QadFinancials > class BBankAccountFormat > method ValBankAccount

Description

Validates Bank Account Number according to value in BankAccountValidationCode


Parameters


icBankAccountNumberinputcharacter
icBankAccountValidationCodeinputcharacter
oiReturnStatusoutputintegerReturn status of the method.


Internal usage


QadFinancials
method BBankNumber.ValidateComponentBeforeAncestor


program code (program1/bbankaccountformat.p)

assign oiReturnStatus = -98.

<I-1 {bFcStartAndOpenInstance
            &ADD-TO-TRANSACTION = "false"
            &CLASS              = "PBankAccountValidation"}>
     
<M-2 run ValidateBankAccountByParams
   (input  icBankAccountValidationCode (icBankAcctFormatCode), 
    input  icBankAccountNumber (icBankAccount), 
    input  '' (icBankAccountFormatted), 
    output viFcReturnSuper (oiReturnStatus)) in PBankAccountValidation>
    
<I-3 {bFcCloseAndStopInstance
            &CLASS           = "PBankAccountValidation"}>

if viFcReturnSuper <> 0 then
    assign oiReturnStatus = viFcReturnSuper.

if oiReturnStatus = -98 then
   assign oiReturnStatus = 0.