Jump to content

IBAN validator


Bess
 Share

Recommended Posts

Based on : http://en.wikipedia.org/wiki/International_Bank_Account_Number#Validating_the_IBAN

Func _IbanValidate($iban)

;~  1. Parse string, but I don't check if IBAN length is correct as per the country, no need.
    $iban = StringRegExpReplace ( StringUpper($iban), "[^A-Z0-9]", "")

;~      2. Move the four initial characters to the end of the string
    $IBAN_iso = StringLeft($iban, 2) ; If need to know Country code
    $IBAN_key = StringMid($iban, 3, 2) ; next 2 digits
    $IBAN_bban= StringMid($iban, 5)
    $IBAN_Reverse = stringsplit($IBAN_bban & $IBAN_iso & $IBAN_key, "") ; complet reversed Iban to array

;~  3. Replace each letter in the string with two digits, thereby expanding the string, where A = 10, B = 11, ..., Z = 35
    $IBAN_Int = "" ; Iban integer
    For $i = 1 To $IBAN_Reverse[0]
        If StringIsDigit($IBAN_Reverse[$i]) Then
          $IBAN_Int &= $IBAN_Reverse[$i]
        Else
          $IBAN_Int &= Asc($IBAN_Reverse[$i])-55
        EndIf
    Next

;~  4. Interpret the string as a decimal integer and compute the remainder of that number on division by 97
;~     Piece-wise calculation D mod 97
;~     Starting from the leftmost digit of D, construct a number using the first 9 digits and call it N.
;~     Calculate N mod 97. If the result is less than 10, prefix the result with a 0, giving a result in the range 00 to 96.
;~     Construct a new 9-digit N by concatenating above result (step 2) with the next 7 digits of D. If there are fewer than 7 digits remaining in D but at least one, then construct a new N, which will have less than 9 digits, from the above result (step 2) followed by the remaining digits of D
;~     Repeat steps 2–3 until all the digits of D have been processed
;~     The result of the final calculation in step 2 will be D mod 97 = N mod 97.

    $mod_N = Mod(StringLeft($IBAN_Int, 9),97)
    $mod_N = ($mod_N < 10) ? "0" & $mod_N : $mod_N
    $mod_N = Mod($mod_N&StringMid($IBAN_Int, 10, 7),97)
    $mod_N = ($mod_N < 10) ? "0" & $mod_N : $mod_N
    $mod_N = Mod($mod_N&StringMid($IBAN_Int, 17, 7),97)
    $mod_N = ($mod_N < 10) ? "0" & $mod_N : $mod_N
    $IBAN_Validate = Mod(int($mod_N&StringMid($IBAN_Int, 24, 7)),97) == 1

Return $IBAN_Validate
EndFunc

$valide = _IbanValidate("GB82 WEST 1234 5698 7654 32")
ConsoleWrite($valide&@LF)
Edited by Bess
Link to comment
Share on other sites

I have to find my own verifier, and compare.

I did a similar feature about two years ago.

But at first glance it looks pretty good ;)

mLipok

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

Spoiler

Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind. 

My contribution (my own projects): * Debenu Quick PDF Library - UDF * Debenu PDF Viewer SDK - UDF * Acrobat Reader - ActiveX Viewer * UDF for PDFCreator v1.x.x * XZip - UDF * AppCompatFlags UDF * CrowdinAPI UDF * _WinMergeCompare2Files() * _JavaExceptionAdd() * _IsBeta() * Writing DPI Awareness App - workaround * _AutoIt_RequiredVersion() * Chilkatsoft.au3 UDF * TeamViewer.au3 UDF * JavaManagement UDF * VIES over SOAP * WinSCP UDF * GHAPI UDF - modest begining - comunication with GitHub REST APIErrorLog.au3 UDF - A logging Library * Include Dependency Tree (Tool for analyzing script relations) * Show_Macro_Values.au3 *

 

My contribution to others projects or UDF based on  others projects: * _sql.au3 UDF  * POP3.au3 UDF *  RTF Printer - UDF * XML.au3 UDF * ADO.au3 UDF SMTP Mailer UDF * Dual Monitor resolution detection * * 2GUI on Dual Monitor System * _SciLexer.au3 UDF * SciTE - Lexer for console pane

Useful links: * Forum Rules * Forum etiquette *  Forum Information and FAQs * How to post code on the forum * AutoIt Online Documentation * AutoIt Online Beta Documentation * SciTE4AutoIt3 getting started * Convert text blocks to AutoIt code * Games made in Autoit * Programming related sites * Polish AutoIt Tutorial * DllCall Code Generator * 

Wiki: Expand your knowledge - AutoIt Wiki * Collection of User Defined Functions * How to use HelpFile * Good coding practices in AutoIt * 

OpenOffice/LibreOffice/XLS Related: WriterDemo.au3 * XLS/MDB from scratch with ADOX

IE Related:  * How to use IE.au3  UDF with  AutoIt v3.3.14.x * Why isn't Autoit able to click a Javascript Dialog? * Clicking javascript button with no ID * IE document >> save as MHT file * IETab Switcher (by LarsJ ) * HTML Entities * _IEquerySelectorAll() (by uncommon) * IE in TaskSchedulerIE Embedded Control Versioning (use IE9+ and HTML5 in a GUI) * PDF Related:How to get reference to PDF object embeded in IE * IE on Windows 11

I encourage you to read: * Global Vars * Best Coding Practices * Please explain code used in Help file for several File functions * OOP-like approach in AutoIt * UDF-Spec Questions *  EXAMPLE: How To Catch ConsoleWrite() output to a file or to CMD *

I also encourage you to check awesome @trancexx code:  * Create COM objects from modules without any demand on user to register anything. * Another COM object registering stuffOnHungApp handlerAvoid "AutoIt Error" message box in unknown errors  * HTML editor

winhttp.au3 related : * https://www.autoitscript.com/forum/topic/206771-winhttpau3-download-problem-youre-speaking-plain-http-to-an-ssl-enabled-server-port/

"Homo sum; humani nil a me alienum puto" - Publius Terentius Afer
"Program are meant to be read by humans and only incidentally for computers and execute" - Donald Knuth, "The Art of Computer Programming"
:naughty:  :ranting:, be  :) and       \\//_.

Anticipating Errors :  "Any program that accepts data from a user must include code to validate that data before sending it to the data store. You cannot rely on the data store, ...., or even your programming language to notify you of problems. You must check every byte entered by your users, making sure that data is the correct type for its field and that required fields are not empty."

Signature last update: 2023-04-24

Link to comment
Share on other sites

It looks like a good start, but I did notice that ...

$IBAN_Int &= Int(dec(_StringToHex($IBAN_Reverse[$i]))-55)

can be reduced to using StringUpper(), Asc() and then minus 55. I would also add a check (if not done before) that the value is between 10 and 36.

UDF List:

 
_AdapterConnections()_AlwaysRun()_AppMon()_AppMonEx()_ArrayFilter/_ArrayReduce_BinaryBin()_CheckMsgBox()_CmdLineRaw()_ContextMenu()_ConvertLHWebColor()/_ConvertSHWebColor()_DesktopDimensions()_DisplayPassword()_DotNet_Load()/_DotNet_Unload()_Fibonacci()_FileCompare()_FileCompareContents()_FileNameByHandle()_FilePrefix/SRE()_FindInFile()_GetBackgroundColor()/_SetBackgroundColor()_GetConrolID()_GetCtrlClass()_GetDirectoryFormat()_GetDriveMediaType()_GetFilename()/_GetFilenameExt()_GetHardwareID()_GetIP()_GetIP_Country()_GetOSLanguage()_GetSavedSource()_GetStringSize()_GetSystemPaths()_GetURLImage()_GIFImage()_GoogleWeather()_GUICtrlCreateGroup()_GUICtrlListBox_CreateArray()_GUICtrlListView_CreateArray()_GUICtrlListView_SaveCSV()_GUICtrlListView_SaveHTML()_GUICtrlListView_SaveTxt()_GUICtrlListView_SaveXML()_GUICtrlMenu_Recent()_GUICtrlMenu_SetItemImage()_GUICtrlTreeView_CreateArray()_GUIDisable()_GUIImageList_SetIconFromHandle()_GUIRegisterMsg()_GUISetIcon()_Icon_Clear()/_Icon_Set()_IdleTime()_InetGet()_InetGetGUI()_InetGetProgress()_IPDetails()_IsFileOlder()_IsGUID()_IsHex()_IsPalindrome()_IsRegKey()_IsStringRegExp()_IsSystemDrive()_IsUPX()_IsValidType()_IsWebColor()_Language()_Log()_MicrosoftInternetConnectivity()_MSDNDataType()_PathFull/GetRelative/Split()_PathSplitEx()_PrintFromArray()_ProgressSetMarquee()_ReDim()_RockPaperScissors()/_RockPaperScissorsLizardSpock()_ScrollingCredits_SelfDelete()_SelfRename()_SelfUpdate()_SendTo()_ShellAll()_ShellFile()_ShellFolder()_SingletonHWID()_SingletonPID()_Startup()_StringCompact()_StringIsValid()_StringRegExpMetaCharacters()_StringReplaceWholeWord()_StringStripChars()_Temperature()_TrialPeriod()_UKToUSDate()/_USToUKDate()_WinAPI_Create_CTL_CODE()_WinAPI_CreateGUID()_WMIDateStringToDate()/_DateToWMIDateString()Au3 script parsingAutoIt SearchAutoIt3 PortableAutoIt3WrapperToPragmaAutoItWinGetTitle()/AutoItWinSetTitle()CodingDirToHTML5FileInstallrFileReadLastChars()GeoIP databaseGUI - Only Close ButtonGUI ExamplesGUICtrlDeleteImage()GUICtrlGetBkColor()GUICtrlGetStyle()GUIEventsGUIGetBkColor()Int_Parse() & Int_TryParse()IsISBN()LockFile()Mapping CtrlIDsOOP in AutoItParseHeadersToSciTE()PasswordValidPasteBinPosts Per DayPreExpandProtect GlobalsQueue()Resource UpdateResourcesExSciTE JumpSettings INISHELLHOOKShunting-YardSignature CreatorStack()Stopwatch()StringAddLF()/StringStripLF()StringEOLToCRLF()VSCROLLWM_COPYDATAMore Examples...

Updated: 22/04/2018

Link to comment
Share on other sites

btw.

Welcome to the forum

and please read "How to post code" in my signature

Cheers

mLipok

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

Spoiler

Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind. 

My contribution (my own projects): * Debenu Quick PDF Library - UDF * Debenu PDF Viewer SDK - UDF * Acrobat Reader - ActiveX Viewer * UDF for PDFCreator v1.x.x * XZip - UDF * AppCompatFlags UDF * CrowdinAPI UDF * _WinMergeCompare2Files() * _JavaExceptionAdd() * _IsBeta() * Writing DPI Awareness App - workaround * _AutoIt_RequiredVersion() * Chilkatsoft.au3 UDF * TeamViewer.au3 UDF * JavaManagement UDF * VIES over SOAP * WinSCP UDF * GHAPI UDF - modest begining - comunication with GitHub REST APIErrorLog.au3 UDF - A logging Library * Include Dependency Tree (Tool for analyzing script relations) * Show_Macro_Values.au3 *

 

My contribution to others projects or UDF based on  others projects: * _sql.au3 UDF  * POP3.au3 UDF *  RTF Printer - UDF * XML.au3 UDF * ADO.au3 UDF SMTP Mailer UDF * Dual Monitor resolution detection * * 2GUI on Dual Monitor System * _SciLexer.au3 UDF * SciTE - Lexer for console pane

Useful links: * Forum Rules * Forum etiquette *  Forum Information and FAQs * How to post code on the forum * AutoIt Online Documentation * AutoIt Online Beta Documentation * SciTE4AutoIt3 getting started * Convert text blocks to AutoIt code * Games made in Autoit * Programming related sites * Polish AutoIt Tutorial * DllCall Code Generator * 

Wiki: Expand your knowledge - AutoIt Wiki * Collection of User Defined Functions * How to use HelpFile * Good coding practices in AutoIt * 

OpenOffice/LibreOffice/XLS Related: WriterDemo.au3 * XLS/MDB from scratch with ADOX

IE Related:  * How to use IE.au3  UDF with  AutoIt v3.3.14.x * Why isn't Autoit able to click a Javascript Dialog? * Clicking javascript button with no ID * IE document >> save as MHT file * IETab Switcher (by LarsJ ) * HTML Entities * _IEquerySelectorAll() (by uncommon) * IE in TaskSchedulerIE Embedded Control Versioning (use IE9+ and HTML5 in a GUI) * PDF Related:How to get reference to PDF object embeded in IE * IE on Windows 11

I encourage you to read: * Global Vars * Best Coding Practices * Please explain code used in Help file for several File functions * OOP-like approach in AutoIt * UDF-Spec Questions *  EXAMPLE: How To Catch ConsoleWrite() output to a file or to CMD *

I also encourage you to check awesome @trancexx code:  * Create COM objects from modules without any demand on user to register anything. * Another COM object registering stuffOnHungApp handlerAvoid "AutoIt Error" message box in unknown errors  * HTML editor

winhttp.au3 related : * https://www.autoitscript.com/forum/topic/206771-winhttpau3-download-problem-youre-speaking-plain-http-to-an-ssl-enabled-server-port/

"Homo sum; humani nil a me alienum puto" - Publius Terentius Afer
"Program are meant to be read by humans and only incidentally for computers and execute" - Donald Knuth, "The Art of Computer Programming"
:naughty:  :ranting:, be  :) and       \\//_.

Anticipating Errors :  "Any program that accepts data from a user must include code to validate that data before sending it to the data store. You cannot rely on the data store, ...., or even your programming language to notify you of problems. You must check every byte entered by your users, making sure that data is the correct type for its field and that required fields are not empty."

Signature last update: 2023-04-24

Link to comment
Share on other sites

Sorry I couldn't help it.

#include <StringConstants.au3>

Local $UNITED_KINGDOM = 22, _
        $sIBAN = 'GB82 WEST 1234 5698 7654 32'
ConsoleWrite('IsIBAN: ' & _IsIBAN($sIBAN, $UNITED_KINGDOM) & @CRLF)

Func _IsIBAN($sIBAN, $iChars)
    $sIBAN = StringRegExpReplace($sIBAN, '[^A-Za-z0-9]', '')
    ConsoleWrite('Formatted IBAN: ' & $sIBAN & @CRLF)
    Local $iLength = UBound(StringRegExp($sIBAN, '([A-Z0-9])', $STR_REGEXPARRAYGLOBALMATCH))
    ConsoleWrite('Length: ' & $iLength & @CRLF)
    Local $iRemainder = 0
    If $iLength = $iChars Then
        $sIBAN = StringRegExpReplace($sIBAN, '^([A-Z0-9]{4})([A-Z0-9]{' & ($iLength - 4) & '})', '$2$1')
        Local $sChr = '', $sIBANToInt = ''
        For $i = 1 To $iLength
            $sChr = StringMid($sIBAN, $i, 1)
            If Not StringIsInt($sChr) Then
                $sChr = Asc($sChr) - 55
            EndIf
            $sIBANToInt &= $sChr
        Next
        ; Taken from some beautiful C# example: http://iban.saltug.net/
        While (StringLen($sIBANToInt) >= 7)
            $iRemainder = Mod(Int($iRemainder & StringLeft($sIBANToInt, 7)), 97)
            $sIBANToInt = StringTrimLeft($sIBANToInt, 7)
        WEnd
        $iRemainder = Mod(Int($iRemainder & $sIBANToInt), 97)
    EndIf
    Return $iRemainder = 1
EndFunc   ;==>_IsIBAN

UDF List:

 
_AdapterConnections()_AlwaysRun()_AppMon()_AppMonEx()_ArrayFilter/_ArrayReduce_BinaryBin()_CheckMsgBox()_CmdLineRaw()_ContextMenu()_ConvertLHWebColor()/_ConvertSHWebColor()_DesktopDimensions()_DisplayPassword()_DotNet_Load()/_DotNet_Unload()_Fibonacci()_FileCompare()_FileCompareContents()_FileNameByHandle()_FilePrefix/SRE()_FindInFile()_GetBackgroundColor()/_SetBackgroundColor()_GetConrolID()_GetCtrlClass()_GetDirectoryFormat()_GetDriveMediaType()_GetFilename()/_GetFilenameExt()_GetHardwareID()_GetIP()_GetIP_Country()_GetOSLanguage()_GetSavedSource()_GetStringSize()_GetSystemPaths()_GetURLImage()_GIFImage()_GoogleWeather()_GUICtrlCreateGroup()_GUICtrlListBox_CreateArray()_GUICtrlListView_CreateArray()_GUICtrlListView_SaveCSV()_GUICtrlListView_SaveHTML()_GUICtrlListView_SaveTxt()_GUICtrlListView_SaveXML()_GUICtrlMenu_Recent()_GUICtrlMenu_SetItemImage()_GUICtrlTreeView_CreateArray()_GUIDisable()_GUIImageList_SetIconFromHandle()_GUIRegisterMsg()_GUISetIcon()_Icon_Clear()/_Icon_Set()_IdleTime()_InetGet()_InetGetGUI()_InetGetProgress()_IPDetails()_IsFileOlder()_IsGUID()_IsHex()_IsPalindrome()_IsRegKey()_IsStringRegExp()_IsSystemDrive()_IsUPX()_IsValidType()_IsWebColor()_Language()_Log()_MicrosoftInternetConnectivity()_MSDNDataType()_PathFull/GetRelative/Split()_PathSplitEx()_PrintFromArray()_ProgressSetMarquee()_ReDim()_RockPaperScissors()/_RockPaperScissorsLizardSpock()_ScrollingCredits_SelfDelete()_SelfRename()_SelfUpdate()_SendTo()_ShellAll()_ShellFile()_ShellFolder()_SingletonHWID()_SingletonPID()_Startup()_StringCompact()_StringIsValid()_StringRegExpMetaCharacters()_StringReplaceWholeWord()_StringStripChars()_Temperature()_TrialPeriod()_UKToUSDate()/_USToUKDate()_WinAPI_Create_CTL_CODE()_WinAPI_CreateGUID()_WMIDateStringToDate()/_DateToWMIDateString()Au3 script parsingAutoIt SearchAutoIt3 PortableAutoIt3WrapperToPragmaAutoItWinGetTitle()/AutoItWinSetTitle()CodingDirToHTML5FileInstallrFileReadLastChars()GeoIP databaseGUI - Only Close ButtonGUI ExamplesGUICtrlDeleteImage()GUICtrlGetBkColor()GUICtrlGetStyle()GUIEventsGUIGetBkColor()Int_Parse() & Int_TryParse()IsISBN()LockFile()Mapping CtrlIDsOOP in AutoItParseHeadersToSciTE()PasswordValidPasteBinPosts Per DayPreExpandProtect GlobalsQueue()Resource UpdateResourcesExSciTE JumpSettings INISHELLHOOKShunting-YardSignature CreatorStack()Stopwatch()StringAddLF()/StringStripLF()StringEOLToCRLF()VSCROLLWM_COPYDATAMore Examples...

Updated: 22/04/2018

Link to comment
Share on other sites

so this would be a valid IBAN in both validation routines above

NL-62-DEUT-04485-93815

I am sure payment engines will reject above (similar to payment engines will refuse IBANS with spaces and even SEPA XML XSD's will not allow)

Some code related to validating (just mod 97 on long numbers)

test()

func test()
    consolewrite( 98 - ModLong(IBAN2Number("NL20INGB0001234567"), 97) & @CRLF)
    consolewrite( 98 - ModLong(IBAN2Number("NL94ABNA0458379352"), 97)& @CRLF)
    consolewrite( 98 - ModLong(IBAN2Number("NL 0458379352"), 97) & @CRLF)
    consolewrite( 98 - ModLong(IBAN2Number("NL  ABNA0458379352"), 97)& @CRLF)
    consolewrite( 98 - ModLong(IBAN2Number("NL  ABNA0000000555"), 97)& @CRLF)
 EndFunc
 
func modLong($divident, $divisor)
   const $partLength=6
   while stringlen($divident) > $partLength
         $part=stringleft($divident, $partLength)
         $divident= string(mod($part,$divisor)) & stringmid($divident,$partlength+1)
   WEnd
   return mod($divident,$divisor)    
EndFunc

func IBAN2Number($IBAN)
   local $tStr, $newStr
   $tStr=stringMid($IBAN, 5) & stringLeft($IBAN, 2)
   for $i=1 to stringlen($tStr)
      $tVal=asc(stringmid($tStr,$i,1))
         if $tval>=65 and $tval <=90 Then
            $newStr=$newStr & string($tVal-55)
         Else
            $newStr=$newStr & stringmid($tStr,$i,1)
         EndIf
      Next
   return $newStr & "00"        
endFunc

 
 

Link to comment
Share on other sites

  • 9 years later...

Just to share a reference:

https://stackoverflow.com/questions/8377306/validate-iban-in-excel

And an example function for BIC (Bank Identifier Code) complete for Spain, and only some data for Portugal and Italy:

#include <StringConstants.au3>

Global $sIBAN = "ES4221009668423577522711"
ConsoleWrite(_BIC($sIBAN) & @CRLF)

Func _BIC($iban)
If StringCompare(StringLeft($iban, 2), "ES", $STR_NOCASESENSEBASIC) = 0 Then
    Switch Stringmid($iban, 5, 4)
        Case "0003"
            Return "BDEPESM1XXX"
        Case "0003"
            Return "BDEPESM1XXX"
        Case "0004"
            Return "BANDESSSXXX"
        Case "0008"
            Return "BSABESBBXXX"
        Case "0010"
            Return "BBVAESMMXXX"
        Case "0013"
            Return "SLBKESBBXXX"
        Case "0015"
            Return "CATAESBBXXX"
        Case "0016"
            Return "CENTESMM"
        Case "0019"
            Return "DEUTESBBXXX"
        Case "0020"
            Return "BCIOESMMXXX"
        Case "0024"
            Return "BALEES22XXX"
        Case "0029"
            Return "CRLEESMMXXX"
        Case "0030"
            Return "ESPCESMMXXX"
        Case "0031"
            Return "ETCHES2GXXX"
        Case "0036"
            Return "SABNESMMXXX"
        Case "0042"
            Return "BGUIES22XXX"
        Case "0046"
            Return "GALEES2GXXX"
        Case "0049"
            Return "BSCHESMMXXX"
        Case "0057"
            Return "BVADESMMXXX"
        Case "0058"
            Return "BNPAESMMXXX"
        Case "0059"
            Return "MADRESMMXXX"
        Case "0061"
            Return "BMARES2MXXX"
        Case "0065"
            Return "BARCESMMXXX"
        Case "0072"
            Return "PSTRESMMXXX"
        Case "0073"
            Return "OPENESMMXXX"
        Case "0075"
            Return "BSCHESMMXXX"
        Case "0078"
            Return "BAPUES22XXX"
        Case "0081"
            Return "BSABESBBXXX"
        Case "0083"
            Return "RENBESMMXXX"
        Case "0086"
            Return "NORTESMMXXX"
        Case "0093"
            Return "VALEESVVXXX"
        Case "0094"
            Return "BVALESMMXXX"
        Case "0099"
            Return "AHCRESVVXXX"
        Case "0106"
            Return "LOYDESMMXXX"
        Case "0107"
            Return "BNLIESM1XXX"
        Case "0108"
            Return "SOGEESMMXXX"
        Case "0113"
            Return "INBBESM1XXX"
        Case "0121"
            Return "OCBAESM1XXX"
        Case "0122"
            Return "CITIES2XXXX"
        Case "0125"
            Return "BAOFESM1XXX"
        Case "0128"
            Return "BKBKESMMXXX"
        Case "0129"
            Return "INALESM1XXX"
        Case "0130"
            Return "CGDIESMMXXX"
        Case "0131"
            Return "BESMESMMXXX"
        Case "0132"
            Return "PRNEESM1XXX"
        Case "0133"
            Return "MIKBESB1XXX"
        Case "0136"
            Return "AREBESMMXXX"
        Case "0138"
            Return "BKOAES22XXX"
        Case "0144"
            Return "PARBESMXXXX"
        Case "0145"
            Return "DEUTESM1XXX"
        Case "0149"
            Return "BNPAESMSXXX"
        Case "0151"
            Return "CHASESM3XXX"
        Case "0211"
            Return "PROAESMMXXX"
        Case "0216"
            Return "POHIESMMXXX"
        Case "0217"
            Return "HLFXESMMXXX"
        Case "0219"
            Return "BMCEESMMXXX"
        Case "0220"
            Return "FIOFESM1XXX"
        Case "0227"
            Return "UNOEESM1XXX"
        Case "0229"
            Return "POPLESMMXXX"
        Case "0487"
            Return "GBMNESMMXXX"
        Case "1000"
            Return "ICROESMMXXX"
        Case "1302"
            Return "BBVAESMMXXX"
        Case "1465"
            Return "INGDESMMXXX"
        Case "1490"
            Return "SELFESMMXXX"
        Case "1491"
            Return "TRIOESMMXXX"
        Case "2000"
            Return "CECAESMMXXX"
        Case "2010"
            Return "CECAESMM1"
        Case "2013"
            Return "CESCESBBXXX"
        Case "2017"
            Return "CECAESMM17"
        Case "2018"
            Return "CECAESMM18"
        Case "2031"
            Return "CECAESMM31"
        Case "2038"
            Return "CAHMESMMXXX"
        Case "2043"
            Return "CECAESMM43"
        Case "2045"
            Return "CECAESMM45"
        Case "2048"
            Return "CECAESMM48"
        Case "2051"
            Return "CECAESMM51"
        Case "2052"
            Return "CECAESMM52"
        Case "2056"
            Return "CECAESMM56"
        Case "2059"
            Return "CECAESMM59"
        Case "2066"
            Return "CECAESMM66"
        Case "2080"
            Return "CAGLESMMVIG"
        Case "2081"
            Return "CECAESMM81"
        Case "2085"
            Return "CAZRES2ZXXX"
        Case "2086"
            Return "CECAESMM86"
        Case "2095"
            Return "BASKES2BXXX"
        Case "2096"
            Return "CSPAES2LXXX"
        Case "2099"
            Return "CECAESMM99"
        Case "2100"
            Return "CAIXESBBXXX"
        Case "2101"
            Return "CGGKES22XXX"
        Case "2103"
            Return "UCJAES2MXXX"
        Case "2104"
            Return "CSSOES2SXXX"
        Case "2105"
            Return "CECAESMM15"
        Case "2107"
            Return "BBVAESMM17"
        Case "3001"
            Return "BCOEESMM1"
        Case "3005"
            Return "BCOEESMM5"
        Case "3007"
            Return "BCOEESMM7"
        Case "3008"
            Return "BCOEESMM8"
        Case "3009"
            Return "BCOEESMM9"
        Case "3016"
            Return "BCOEESMM16"
        Case "3017"
            Return "BCOEESMM17"
        Case "3018"
            Return "BCOEESMM18"
        Case "3020"
            Return "BCOEESMM2"
        Case "3023"
            Return "BCOEESMM23"
        Case "3025"
            Return "CDENESBBXXX"
        Case "3029"
            Return "CCRIES2A29"
        Case "3035"
            Return "CLPEES2MXXX"
        Case "3045"
            Return "CCRIES2A45"
        Case "3058"
            Return "CCRIES2AXXX"
        Case "3059"
            Return "BCOEESMM59"
        Case "3060"
            Return "BCOEESMM6"
        Case "3063"
            Return "BCOEESMM63"
        Case "3067"
            Return "BCOEESMM67"
        Case "3070"
            Return "BCOEESMM7"
        Case "3076"
            Return "BCOEESMM76"
        Case "3080"
            Return "BCOEESMM8"
        Case "3081"
            Return "BCOEESMM81"
        Case "3082"
            Return "CCRIES2A82"
        Case "3084"
            Return "CVRVES2BXXX"
        Case "3085"
            Return "BCOEESMM85"
        Case "3089"
            Return "BCOEESMM89"
        Case "3095"
            Return "CCRIES2A95"
        Case "3096"
            Return "BCOEESMM96"
        Case "3098"
            Return "BCOEESMM98"
        Case "3102"
            Return "BCOEESMM12"
        Case "3104"
            Return "BCOEESMM14"
        Case "3105"
            Return "CCRIES2A15"
        Case "3110"
            Return "BCOEESMM11"
        Case "3111"
            Return "BCOEESMM111"
        Case "3112"
            Return "CCRIES2A112"
        Case "3113"
            Return "BCOEESMM113"
        Case "3114"
            Return "CCRIES2A114"
        Case "3115"
            Return "BCOEESMM115"
        Case "3116"
            Return "BCOEESMM116"
        Case "3117"
            Return "BCOEESMM117"
        Case "3118"
            Return "CCRIES2A118"
        Case "3119"
            Return "CCRIES2A119"
        Case "3121"
            Return "CCRIES2A121"
        Case "3123"
            Return "CCRIES2A123"
        Case "3127"
            Return "BCOEESMM127"
        Case "3130"
            Return "BCOEESMM13"
        Case "3134"
            Return "BCOEESMM134"
        Case "3135"
            Return "CCRIES2A135"
        Case "3137"
            Return "CCRIES2A137"
        Case "3138"
            Return "BCOEESMM138"
        Case "3140"
            Return "BCOEESMM14"
        Case "3144"
            Return "BCOEESMM144"
        Case "3146"
            Return "CCCVESM1XXX"
        Case "3150"
            Return "BCOEESMM15"
        Case "3152"
            Return "CCRIES2A152"
        Case "3157"
            Return "CCRIES2A157"
        Case "3159"
            Return "BCOEESMM159"
        Case "3160"
            Return "CCRIES2A16"
        Case "3162"
            Return "BCOEESMM162"
        Case "3165"
            Return "CCRIES2A165"
        Case "3166"
            Return "BCOEESMM166"
        Case "3171"
            Return "CXAVESB1XXX"
        Case "3172"
            Return "CCOCESMMXXX"
        Case "3174"
            Return "BCOEESMM174"
        Case "3177"
            Return "BCOEESMM177"
        Case "3179"
            Return "CCRIES2A179"
        Case "3183"
            Return "CASDESBBXXX"
        Case "3187"
            Return "BCOEESMM187"
        Case "3188"
            Return "CCRIES2A188"
        Case "9000"
            Return "ESPBESMMXXX"
        Case "3191"
            Return "BCOEESMM191"
        Case "0011"
            Return "ALLFESMMXXX"
        Case "0184"
            Return "BEDFESM1XXX"
        Case "0223"
            Return "GEECESB1XXX"
        Case "0224"
            Return "SCFBESMMXXX"
        Case "0225"
            Return "FIEIESM1XXX"
        Case "0226"
            Return "UBSWESMMXXX"
        Case "0231"
            Return "DSBLESMMXXX"
        Case "0232"
            Return "INVLESMMXXX"
        Case "0233"
            Return "POPIESMMXXX"
        Case "0234"
            Return "CCOCESMMXXX"
        Case "0235"
            Return "PIESESM1XXX"
        Case "0236"
            Return "LOYIESMMXXX"
        Case "0237"
            Return "CSURES2CXXX"
        Case "0488"
            Return "BFASESMMXXX"
        Case "0490"
            Return "GBCCESMMXXX"
        Case "2108"
            Return "CSPAES2L18"
        Case "2404"
            Return "CECAESMM52"
        Case "2405"
            Return "CECAESMM42"
        Case "2406"
            Return "CECAESMM37"
        Case "2408"
            Return "CECAESMM69"
        Case "2410"
            Return "CANVES2PXXX"
        Case "2411"
            Return "CECAESMM16"
        Case "2412"
            Return "CECAESMM65"
        Case "2413"
            Return "CECAESMM18"
        Case "2415"
            Return "CECAESMM99"
        Case "2416"
            Return "CECAESMM66"
        Case "2421"
            Return "CECAESMM31"
        Case "2422"
            Return "CECAESMM43"
        Case "2423"
            Return "CECAESMM81"
        Case "2424"
            Return "CECAESMM51"
        Case "3186"
            Return "CCRIES2A186"
        Case "3190"
            Return "BCOEESMM19"
        Case "0021"
            Return "BCNDESM1XXX"
        Case "0041"
            Return "CAIXESBBXXX"
        Case "1460"
            Return "CRESESMMXXX"
        Case "8233"
            Return "CSFAESM1XXX"
        Case "1466"
            Return "FRANESM1XXX"
        Case "1467"
            Return "EHYPESMXXXX"
        Case "1469"
            Return "SHSAESM1XXX"
        Case "1470"
            Return "BPIPESM1XXX"
        Case "1472"
            Return "UCSSESM1XXX"
        Case "1473"
            Return "PRIBESMXXXX"
        Case "1474"
            Return "CITIESMXXXX"
        Case "1475"
            Return "CCSEESM1XXX"
        Case "1478"
            Return "MLIBESM1XXX"
        Case "1479"
            Return "NATXESMMXXX"
        Case "1480"
            Return "VOWAES21XXX"
        Case "1488"
            Return "PICTESMMXXX"
        Case "1494"
            Return "BCITESMMXXX"
        Case "1497"
            Return "ESSIESMMXXX"
        Case "1501"
            Return "DPBBESM1XXX"
        Case "1522"
            Return "EFGBESMMXXX"
        Case "1525"
            Return "BCDMESMMXXX"
        Case "1534"
            Return "KBLXESMMXXX"
        Case "1538"
            Return "ICBKESMMXXX"
        Case "1544"
            Return "BACAESMMXXX"
        Case "1116"
            Return "SCSIESM1XXX"
        Case "1127"
            Return "SCBLESM1XXX"
        Case "1156"
            Return "IRVTESM1XXX"
        Case "1168"
            Return "BNACESM1XXX"
        Case "1191"
            Return "HANDES21XXX"
        Case "1193"
            Return "PKBSES21XXX"
        Case "1196"
            Return "AEEVESM1XXX"
        Case "1197"
            Return "BILLESB1XXX"
        Case "1199"
            Return "CRGEESM1XXX"
        Case "1209"
            Return "ABCMESM1XXX"
        Case "1210"
            Return "REDEESM1XXX"
        Case "1255"
            Return "AARBESM1XXX"
        Case "1173"
            Return "COURESB1XXX"
        Case "0239"
            Return "CAGLESMMXXX"
        Case "0003"
            Return "BDEPESM1XXX"
        Case "0004"
            Return "BANDESSSXXX"
        Case "0008"
            Return "BSABESBBXXX"
        Case "0010"
            Return "BBVAESMMXXX"
        Case "0013"
            Return "SLBKESBBXXX"
        Case "0015"
            Return "CATAESBBXXX"
        Case "0016"
            Return "CENTESMM"
        Case "0019"
            Return "DEUTESBBXXX"
        Case "0020"
            Return "BCIOESMMXXX"
        Case "0024"
            Return "BALEES22XXX"
        Case "0029"
            Return "CRLEESMMXXX"
        Case "0030"
            Return "ESPCESMMXXX"
        Case "0031"
            Return "ETCHES2GXXX"
        Case "0036"
            Return "SABNESMMXXX"
        Case "0042"
            Return "BGUIES22XXX"
        Case "0046"
            Return "GALEES2GXXX"
        Case "0049"
            Return "BSCHESMMXXX"
        Case "0057"
            Return "BVADESMMXXX"
        Case "0058"
            Return "BNPAESMMXXX"
        Case "0059"
            Return "MADRESMMXXX"
        Case "0061"
            Return "BMARES2MXXX"
        Case "0065"
            Return "BARCESMMXXX"
        Case "0072"
            Return "PSTRESMMXXX"
        Case "0073"
            Return "OPENESMMXXX"
        Case "0075"
            Return "POPUESMMXXX"
        Case "0078"
            Return "BAPUES22XXX"
        Case "0081"
            Return "BSABESBBXXX"
        Case "0083"
            Return "RENBESMMXXX"
        Case "0086"
            Return "NORTESMMXXX"
        Case "0093"
            Return "VALEESVVXXX"
        Case "0094"
            Return "BVALESMMXXX"
        Case "0099"
            Return "AHCRESVVXXX"
        Case "0106"
            Return "LOYDESMMXXX"
        Case "0107"
            Return "BNLIESM1XXX"
        Case "0108"
            Return "SOGEESMMXXX"
        Case "0113"
            Return "INBBESM1XXX"
        Case "0121"
            Return "OCBAESM1XXX"
        Case "0122"
            Return "CITIES2XXXX"
        Case "0125"
            Return "BAOFESM1XXX"
        Case "0128"
            Return "BKBKESMMXXX"
        Case "0129"
            Return "INALESM1XXX"
        Case "0130"
            Return "CGDIESMMXXX"
        Case "0131"
            Return "BESMESMMXXX"
        Case "0132"
            Return "PRNEESM1XXX"
        Case "0133"
            Return "MIKBESB1XXX"
        Case "0136"
            Return "AREBESMMXXX"
        Case "0138"
            Return "BKOAES22XXX"
        Case "0144"
            Return "PARBESMXXXX"
        Case "0145"
            Return "DEUTESM1XXX"
        Case "0149"
            Return "BNPAESMSXXX"
        Case "0151"
            Return "CHASESM3XXX"
        Case "0152"
            Return "BPLCESMMXXX"
        Case "0154"
            Return "BSUIESMMXXX"
        Case "0155"
            Return "BRASESMMXXX"
        Case "0156"
            Return "ABNAESMMXXX"
        Case "0159"
            Return "COBAESMXXXX"
        Case "0160"
            Return "BOTKESMXXXX"
        Case "0161"
            Return "BKTRESM1XXX"
        Case "0162"
            Return "MIDLESMMXXX"
        Case "0167"
            Return "GEBAESMMXXX"
        Case "0168"
            Return "BBRUESMXXXX"
        Case "0169"
            Return "NACNESMMXXX"
        Case "0182"
            Return "BBVAESMMXXX"
        Case "0186"
            Return "BFIVESBBXXX"
        Case "0188"
            Return "ALCLESMMXXX"
        Case "0190"
            Return "BBPIESMMXXX"
        Case "0196"
            Return "WELAESMMXXX"
        Case "0198"
            Return "BCOEESMMXXX"
        Case "0200"
            Return "PRVBESB1XXX"
        Case "0205"
            Return "DECRESM1XXX"
        Case "0211"
            Return "PROAESMMXXX"
        Case "0216"
            Return "POHIESMMXXX"
        Case "0217"
            Return "HLFXESMMXXX"
        Case "0219"
            Return "BMCEESMMXXX"
        Case "0220"
            Return "FIOFESM1XXX"
        Case "0227"
            Return "UNOEESM1XXX"
        Case "0229"
            Return "POPLESMMXXX"
        Case "0487"
            Return "GBMNESMMXXX"
        Case "1000"
            Return "ICROESMMXXX"
        Case "1302"
            Return "BBVAESMMXXX"
        Case "1465"
            Return "INGDESMMXXX"
        Case "1490"
            Return "SELFESMMXXX"
        Case "1491"
            Return "TRIOESMMXXX"
        Case "2000"
            Return "CECAESMMXXX"
        Case "2010"
            Return "CECAESMM1"
        Case "2013"
            Return "CESCESBBXXX"
        Case "2017"
            Return "CECAESMM17"
        Case "2018"
            Return "CECAESMM18"
        Case "2031"
            Return "CECAESMM31"
        Case "2038"
            Return "CAHMESMMXXX"
        Case "2043"
            Return "CECAESMM43"
        Case "2045"
            Return "CECAESMM45"
        Case "2048"
            Return "CECAESMM48"
        Case "2051"
            Return "CECAESMM51"
        Case "2052"
            Return "CECAESMM52"
        Case "2056"
            Return "CECAESMM56"
        Case "2059"
            Return "CECAESMM59"
        Case "2066"
            Return "CECAESMM66"
        Case "2080"
            Return "CAGLESMMVIG"
        Case "2081"
            Return "CECAESMM81"
        Case "2085"
            Return "CAZRES2ZXXX"
        Case "2086"
            Return "CECAESMM86"
        Case "2095"
            Return "BASKES2BXXX"
        Case "2096"
            Return "CSPAES2LXXX"
        Case "2099"
            Return "CECAESMM99"
        Case "2100"
            Return "CAIXESBBXXX"
        Case "2101"
            Return "CGGKES22XXX"
        Case "2103"
            Return "UCJAES2MXXX"
        Case "2104"
            Return "CSSOES2SXXX"
        Case "2105"
            Return "CECAESMM15"
        Case "2107"
            Return "BBVAESMM17"
        Case "3001"
            Return "BCOEESMM1"
        Case "3005"
            Return "BCOEESMM5"
        Case "3007"
            Return "BCOEESMM7"
        Case "3008"
            Return "BCOEESMM8"
        Case "3009"
            Return "BCOEESMM9"
        Case "3016"
            Return "BCOEESMM16"
        Case "3017"
            Return "BCOEESMM17"
        Case "3018"
            Return "BCOEESMM18"
        Case "3020"
            Return "BCOEESMM2"
        Case "3023"
            Return "BCOEESMM23"
        Case "3025"
            Return "CDENESBBXXX"
        Case "3029"
            Return "CCRIES2A29"
        Case "3035"
            Return "CLPEES2MXXX"
        Case "3045"
            Return "CCRIES2A45"
        Case "3058"
            Return "CCRIES2AXXX"
        Case "3059"
            Return "BCOEESMM59"
        Case "3060"
            Return "BCOEESMM6"
        Case "3063"
            Return "BCOEESMM63"
        Case "3067"
            Return "BCOEESMM067"
        Case "3070"
            Return "BCOEESMM7"
        Case "3076"
            Return "BCOEESMM76"
        Case "3080"
            Return "BCOEESMM8"
        Case "3081"
            Return "BCOEESMM81"
        Case "3082"
            Return "CCRIES2A82"
        Case "3084"
            Return "CVRVES2BXXX"
        Case "3085"
            Return "BCOEESMM85"
        Case "3089"
            Return "BCOEESMM89"
        Case "3095"
            Return "CCRIES2A95"
        Case "3096"
            Return "BCOEESMM96"
        Case "3098"
            Return "BCOEESMM98"
        Case "3102"
            Return "BCOEESMM12"
        Case "3104"
            Return "BCOEESMM14"
        Case "3105"
            Return "CCRIES2A15"
        Case "3110"
            Return "BCOEESMM11"
        Case "3111"
            Return "BCOEESMM111"
        Case "3112"
            Return "CCRIES2A112"
        Case "3113"
            Return "BCOEESMM113"
        Case "3114"
            Return "CCRIES2A114"
        Case "3115"
            Return "BCOEESMM115"
        Case "3116"
            Return "BCOEESMM116"
        Case "3117"
            Return "BCOEESMM117"
        Case "3118"
            Return "CCRIES2A118"
        Case "3119"
            Return "CCRIES2A119"
        Case "3121"
            Return "CCRIES2A121"
        Case "3123"
            Return "CCRIES2A123"
        Case "3127"
            Return "BCOEESMM127"
        Case "3130"
            Return "BCOEESMM13"
        Case "3134"
            Return "BCOEESMM134"
        Case "3135"
            Return "CCRIES2A135"
        Case "3137"
            Return "CCRIES2A137"
        Case "3138"
            Return "BCOEESMM138"
        Case "3140"
            Return "BCOEESMM14"
        Case "3144"
            Return "BCOEESMM144"
        Case "3146"
            Return "CCCVESM1XXX"
        Case "3150"
            Return "BCOEESMM15"
        Case "3152"
            Return "CCRIES2A152"
        Case "3157"
            Return "CCRIES2A157"
        Case "3159"
            Return "BCOEESMM159"
        Case "3160"
            Return "CCRIES2A16"
        Case "3162"
            Return "BCOEESMM162"
        Case "3165"
            Return "CCRIES2A165"
        Case "3166"
            Return "BCOEESMM166"
        Case "3171"
            Return "CXAVESB1XXX"
        Case "3172"
            Return "CCOCESMMXXX"
        Case "3174"
            Return "BCOEESMM174"
        Case "3177"
            Return "BCOEESMM177"
        Case "3179"
            Return "CCRIES2A179"
        Case "3183"
            Return "CASDESBBXXX"
        Case "3187"
            Return "BCOEESMM187"
        Case "3188"
            Return "CCRIES2A188"
        Case "9000"
            Return "ESPBESMMXXX"
        Case "3191"
            Return "BCOEESMM191"
        Case "0011"
            Return "ALLFESMMXXX"
        Case "0184"
            Return "BEDFESM1XXX"
        Case "0223"
            Return "GEECESB1XXX"
        Case "0224"
            Return "SCFBESMMXXX"
        Case "0225"
            Return "FIEIESM1XXX"
        Case "0226"
            Return "UBSWESMMXXX"
        Case "0231"
            Return "DSBLESMMXXX"
        Case "0232"
            Return "INVLESMMXXX"
        Case "0233"
            Return "POPIESMMXXX"
        Case "0234"
            Return "CCOCESMMXXX"
        Case "0235"
            Return "PIESESM1XXX"
        Case "0236"
            Return "LOYIESMMXXX"
        Case "0237"
            Return "CSURES2CXXX"
        Case "0488"
            Return "BFASESMMXXX"
        Case "0490"
            Return "GBCCESMMXXX"
        Case "2108"
            Return "CSPAES2L18"
        Case "2404"
            Return "CECAESMM52"
        Case "2405"
            Return "CECAESMM42"
        Case "2406"
            Return "CECAESMM37"
        Case "2408"
            Return "CECAESMM69"
        Case "2410"
            Return "CANVES2PXXX"
        Case "2411"
            Return "CECAESMM16"
        Case "2412"
            Return "CECAESMM65"
        Case "2413"
            Return "CECAESMM18"
        Case "2415"
            Return "CECAESMM99"
        Case "2416"
            Return "CECAESMM66"
        Case "2421"
            Return "CECAESMM31"
        Case "2422"
            Return "CECAESMM43"
        Case "2423"
            Return "CECAESMM81"
        Case "2424"
            Return "CECAESMM51"
        Case "3186"
            Return "CCRIES2A186"
        Case "3190"
            Return "BCOEESMM19"
        Case "0021"
            Return "BCNDESM1XXX"
        Case "0041"
            Return "CAIXESBBXXX"
        Case "1460"
            Return "CRESESMMXXX"
        Case "8233"
            Return "CSFAESM1XXX"
        Case "1466"
            Return "FRANESM1XXX"
        Case "1467"
            Return "EHYPESMXXXX"
        Case "1469"
            Return "SHSAESM1XXX"
        Case "1470"
            Return "BPIPESM1XXX"
        Case "1472"
            Return "UCSSESM1XXX"
        Case "1473"
            Return "PRIBESMXXXX"
        Case "1474"
            Return "CITIESMXXXX"
        Case "1475"
            Return "CCSEESM1XXX"
        Case "1478"
            Return "MLIBESM1XXX"
        Case "1479"
            Return "NATXESMMXXX"
        Case "1480"
            Return "VOWAES21XXX"
        Case "1488"
            Return "PICTESMMXXX"
        Case "1494"
            Return "BCITESMMXXX"
        Case "1497"
            Return "ESSIESMMXXX"
        Case "1501"
            Return "DPBBESM1XXX"
        Case "1522"
            Return "EFGBESMMXXX"
        Case "1525"
            Return "BCDMESMMXXX"
        Case "1534"
            Return "KBLXESMMXXX"
        Case "1538"
            Return "ICBKESMMXXX"
        Case "1544"
            Return "BACAESMMXXX"
        Case "1116"
            Return "SCSIESM1XXX"
        Case "1127"
            Return "SCBLESM1XXX"
        Case "1156"
            Return "IRVTESM1XXX"
        Case "1168"
            Return "BNACESM1XXX"
        Case "1191"
            Return "HANDES21XXX"
        Case "1193"
            Return "PKBSES21XXX"
        Case "1196"
            Return "AEEVESM1XXX"
        Case "1197"
            Return "BILLESB1XXX"
        Case "1199"
            Return "CRGEESM1XXX"
        Case "1209"
            Return "ABCMESM1XXX"
        Case "1210"
            Return "REDEESM1XXX"
        Case "1255"
            Return "AARBESM1XXX"
        Case "1173"
            Return "COURESB1XXX"
        Case "0239"
            Return "CAGLESMMXXX"
        Case "6814"
            Return "MNTYESMMXXX"
        Case "1464"
            Return "NFFSESM1XXX"
        Case "0228"
            Return "IXIUESM1XXX"
        Case "8512"
            Return "UCINESMMXXX"
        Case "0486"
            Return "TRESES2BXXX"
        Case "0218"
            Return "FCEFESM1XXX"
        Case "1457"
            Return "LLISESM1XXX"
        Case "1459"
            Return "PRABESMMXXX"
        Case "1462"
            Return "ASSCESM1XXX"
        Case "1463"
            Return "PSABESM1XXX"
        Case "1502"
            Return "IKBDESM1XXX"
        Case "1505"
            Return "ARABESMMXXX"
        Case "1506"
            Return "MLCBESM1XXX"
        Case "1524"
            Return "UBIBESMMXXX"
        Case "1485"
            Return "BOFAES2XXXX"
        Case "1113"
            Return "BSUDESM1XXX"
        Case "1164"
            Return "ESBFESM1XXX"
        Case "1182"
            Return "HYVEESM1XXX"
        Case "1221"
            Return "PNBMESM1XXX"
        Case "1224"
            Return "RHRHESM1XXX"
        Case "1227"
            Return "BSSAESB1XXX"
        Case "1231"
            Return "BOCAES21XXX"
        Case "1233"
            Return "BCMAESM1XXX"
        Case "1234"
            Return "PRBAESM1XXX"
        Case "1236"
            Return "HELAESM1XXX"
        Case "1238"
            Return "BIMEESM1XXX"
        Case "1240"
            Return "LOFPESB1XXX"
        Case "1241"
            Return "STOLESM1XXX"
        Case "1242"
            Return "SOLAESB1XXX"
        Case "1245"
            Return "BEIVESM1XXX"
        Case "1248"
            Return "WAFAESM1XXX"
        Case "1249"
            Return "NPBSES21XXX"
        Case "1251"
            Return "IHZUES21XXX"
        Case "1451"
            Return "CRCGESB1XXX"
        Case "1454"
            Return "NEWGESM1XXX"
        Case "0238"
            Return "PSTRESMMXXX"
        Case "0152"
            Return "BPLCESMMXXX"
        Case "0154"
            Return "BSUIESMMXXX"
        Case "0155"
            Return "BRASESMMXXX"
        Case "0156"
            Return "ABNAESMMXXX"
        Case "0159"
            Return "COBAESMXXXX"
        Case "0160"
            Return "BOTKESMXXXX"
        Case "0161"
            Return "BKTRESM1XXX"
        Case "0162"
            Return "MIDLESMMXXX"
        Case "0167"
            Return "GEBAESMMXXX"
        Case "0168"
            Return "BBRUESMXXXX"
        Case "0169"
            Return "NACNESMMXXX"
        Case "0182"
            Return "BBVAESMMXXX"
        Case "0186"
            Return "BFIVESBBXXX"
        Case "0188"
            Return "ALCLESMMXXX"
        Case "0190"
            Return "BBPIESMMXXX"
        Case "0196"
            Return "WELAESMMXXX"
        Case "0198"
            Return "BCOEESMMXXX"
        Case "0200"
            Return "PRVBESB1XXX"
        Case "0205"
            Return "DECRESM1XXX"
        Case "6814"
            Return "MNTYESMMXXX"
        Case "1464"
            Return "NFFSESM1XXX"
        Case "0228"
            Return "IXIUESM1XXX"
        Case "8512"
            Return "UCINESMMXXX"
        Case "0486"
            Return "TRESES2BXXX"
        Case "0218"
            Return "FCEFESM1XXX"
        Case "1457"
            Return "LLISESM1XXX"
        Case "1459"
            Return "PRABESMMXXX"
        Case "1462"
            Return "ASSCESM1XXX"
        Case "1463"
            Return "PSABESM1XXX"
        Case "1502"
            Return "IKBDESM1XXX"
        Case "1505"
            Return "ARABESMMXXX"
        Case "1506"
            Return "MLCBESM1XXX"
        Case "1524"
            Return "UBIBESMMXXX"
        Case "1485"
            Return "BOFAES2XXXX"
        Case "1113"
            Return "BSUDESM1XXX"
        Case "1164"
            Return "ESBFESM1XXX"
        Case "1182"
            Return "HYVEESM1XXX"
        Case "1221"
            Return "PNBMESM1XXX"
        Case "1224"
            Return "RHRHESM1XXX"
        Case "1227"
            Return "BSSAESB1XXX"
        Case "1231"
            Return "BOCAES21XXX"
        Case "1233"
            Return "BCMAESM1XXX"
        Case "1234"
            Return "PRBAESM1XXX"
        Case "1236"
            Return "HELAESM1XXX"
        Case "1238"
            Return "BIMEESM1XXX"
        Case "1240"
            Return "LOFPESB1XXX"
        Case "1241"
            Return "STOLESM1XXX"
        Case "1242"
            Return "SOLAESB1XXX"
        Case "1245"
            Return "BEIVESM1XXX"
        Case "1248"
            Return "WAFAESM1XXX"
        Case "1249"
            Return "NPBSES21XXX"
        Case "1251"
            Return "IHZUES21XXX"
        Case "1451"
            Return "CRCGESB1XXX"
        Case "1454"
            Return "NEWGESM1XXX"
        Case "0238S"
            Return "PSTRESMMXXX"
        Case Else
            Return ""
    EndSwitch
ElseIf StringCompare(StringLeft($iban, 2), "PT", $STR_NOCASESENSEBASIC) = 0 Then
    Switch Stringmid($iban, 5, 4)
        Case "0003"
            Return "BDEPESM1XXX"
        Case "0018"
            Return "TOTAPTPLXXX"
        Case "0010"
            Return "BBPIPTPL"
        Case "0033"
            Return "BCOMPTPLXXX"
        Case "0045"
            Return "CCCMPTPL"
        Case "0007"
            Return "BESCPTPL"
        Case Else
            Return ""
    EndSwitch
ElseIf StringCompare(StringLeft($iban, 2), "IT", $STR_NOCASESENSEBASIC) = 0 Then
    Switch Stringmid($iban, 5, 4)
        Case "P020"
            Return "UNCRITMMORR"
        Case Else
            Return ""
    EndSwitch
Else
    Return ""
EndIf
EndFunc

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...