BWIGetString (h, item, string, size)
Use this to return string data, such as institution information, an IBAN or a condition's message. The item input parameter determines what data is returned.
If you have multiple calls to BWIGetString using the same variable, reset the size parameter to the actual length of the string variable between calls. If you do not reset the parameter, then the core could return a truncated string.
Use BWICheck or BWINext to determine the data you want to return.
If the size output parameter is greater than the size input parameter, the data has been truncated. Your application should use the lesser of the input and output size values to determine which portion of string to use.
string is always terminated by a C null character and the size always includes the null, therefore the size output parameter can never be less than 1. The portion ofstring containing string data is:
minimum(input_size,output_size) - 1
h | Handle for the string. You create this using BWICreateHandle. | ||||||||||||
item |
Long integer. The string data item to return. This can be one of:
|
||||||||||||
size | Long integer. Set this to the number of characters in the string plus 1 for the null character. For example to get a 6 character code, this must be set to 7. |
string | Char. This is the variable in which the string is returned. |
size | Long integer. The number of characters actually contained in the string. This includes one extra character for the null terminator. |