Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
LPARAMETERS tcBranch, tcAccount
lcBranch = STRTRAN(tcBranch, "-") && remove dashes from branch
lcCountry = <your 4-char banking country code>
lcBank = <your 4-char bank code>
lcAccount = RIGHT("0" + tcAccount, 8)
&& add leading zero to a/c no. if necessary
RETURN ;
lcCountry + " " + lcBank + " " + LEFT(lcBranch, 4) + ;
" " + RIGHT(lcBranch, 2) + LEFT(lcAccount, 2) + " " +;
SUBSTR(lcAccount, 3, 4) + " " + RIGHT(lcAccount, 2)
PARAMETERS pIban2Check
** 1st move first 4 digits to the end
cAcntnmbr2Chck = ALLTRIM(SUBSTR(pIban2Check,5,50))+LEFT(pIban2Check,4)
cAcntInNmbrs = ''
** change all letters into numbers
FOR x = 1 TO LEN(ALLTRIM(cAcntnmbr2Chck))
cAcntInNmbrs = cAcntInNmbrs+TRANSF(IIF(ISALPHA((SUBSTR(cAcntnmbr2Chck,x,1))),;
(ASC(LOWER((SUBSTR(cAcntnmbr2Chck,x,1))))-87),(SUBSTR(cAcntnmbr2Chck,x,1))))
ENDFOR
** Ibannumbers can be > 32 digits FoxPro can't handle these numbers
** so chop into acceptable portions
cMod = TRANSFORM(MOD(VAL(SUBSTR(cAcntInNmbrs,1,9)),97))
FOR T = 10 TO 24 STEP 7
cMod = TRANSFORM(MOD(VAL(cMod+SUBSTR(cAcntInNmbrs,T,7)),97))
ENDFOR
nResult = VAL(cMod)
* nResult = 1 = passed Iban test