BWIGetValue – Return numeric data

BWIGetValue (h, item, value)

Use this to return numeric data, such as some bank details, whether an IBAN is valid, or a condition code. The item parameter determines what data is returned.

Input parameters

h Handle for the string. You create this using BWICreateHandle.
item Long integer. The numeric data item to return. This can be one of:
BWI_V_PAR# where # is 1 to 5. Use these to get the account details.
BWG_NUM_BRANCHES Number of branches with the same bank or bank-branch code.
BWI_V_COUNTRY_CHECK Returns the country set for the handle.
BWI_V_COUNTRY_MESS Returns the language in which the condition message strings are returned by BWIGetString.
BWI_V_DATA Use this after BWICheck or BWINext to determine whether any field data has been returned. 1 – yes, 0 – no.
BWI_V_IBAN Determines if the IBAN is valid. 1 – yes, 0 – no. If the IBAN is not from the country defined by the handle, the handle is updated to the IBAN country. If the country cannot be determined, then the country is set to -1.
If the correct country been initialised, the IBAN is broken down and the account details are stored in BWI_V_PAR1 to BWI_V_PAR5.
BWI_V_INFLAG + n where n is the number of the country input flag. Determines if an input flag is set. 1 – yes, 0 – no.
BWI_V_ISO Returns the parameter value for the handle country. If the ISO code is unknown then -1 is returned. For example, if the string is set to DE then BWI_C_GERMANY is returned.

If you use BWI_V_ISO before initialising the core, use BWINext to determine whether any fatal conditions have occurred.

BWI_V_LIC_30DAY Shows whether the country licence will expire within the next 30 days. 1 – yes, 0 – no.
BWI_V_LIC_ACAT Shows whether the country is licensed for account category information. 1 – yes, 0 – no.
BWI_V_LIC_COUNTRY Shows whether you are licensed for the specified country. 1 – yes, 0 – no.
BWI_V_LIC_DUI Shows whether the country is licensed for the Windows Direct User Interface. 1 – yes, 0 – no.
BWI_V_LIC_EX Shows whether the country licence has expired. 1 – yes, 0 – no.
BWI_V_LIC_FSM Shows whether the country is licensed for the File Scanning Module. 1 – yes, 0 – no.
BWI_V_LIC_MODONLY Shows whether the country is licensed for modulus checking only. 1 – yes, 0 – no.
BWI_V_LIC_NOMOD Shows whether if the country is licensed for data only. 1 – yes, 0 – no.
BWI_V_LIC_ROLLNO Shows whether if the country is licensed to perform roll number validation. 1 – yes, 0 – no.
BWI_V_LOADED Shows whether the country set in the handle is loaded. 1 – yes, 0 – no.
BWI_V_NEXT Use this to get the condition number returned by BWINext.

 

Output parameter

value Long integer. This is the value returned.