-
1
- #1
entidad = "4545"
oficina = "4545"
dc = "30"
compte = "4545454545"
*** donde 1428 es el de españa
*** devuelve un nº si es < 0 hay que añadir "0"
iban = entidad+oficina
mod_1 = mod(val(iban),97)
iban = ""+alltrim(str(mod_1))+dc+substr(compte,1,2)
mod_1 = mod(val(iban),97)
iban = ""+alltrim(str(mod_1))+substr(compte,3,10)+"1428"+"00"
mod_iban = mod(val(iban),97)
cc_iban = 98-mod_iban
wait window str(cc_iban)