...
This section describes functions that are used to perform conversions between different types.
baToBigInt
Converts a bytearray to a big integer (two complement).
...
Parameter | Description |
---|---|
| Bigint variable to set |
| Bytearray value |
Returns | Nothing |
baToHexString
Converts a bytearray to a string containing the hexadecimal values.
...
Parameter | Description |
---|---|
| Bytearray value |
Returns | A hexadecimal string |
baToStr
Converts a bytearray to a string.
...
Parameter | Description |
---|---|
| The bytearray to convert |
| The character encoding to use. If no encoding is specified, ISO-8859-1 (Latin 1) is used. If you specify character encoding, it must match the character encoding included in the standard charsets found in https://docs.oracle.com/javase/8/docs/api/java/nio/charset/Charset.html or the extended charset of the target Java implementation. If you specify a character encoding that cannot be found, a compilation error occurs. |
Returns | The result string |
dateToString
Converts a date to a string and assigns the result to a string variable (or field). Returns true if the conversion succeeded. The only time the conversion can fail, is if the date is null or the format is invalid.
...
Parameter | Description |
---|---|
| String identifier to set. |
| The date value. |
| If no format string is specified, the default system format is used as specified in the property The date formatting is based on standard Java syntax. For further information, see http://docs.oracle.com/javase/8/docs/api/java/text/SimpleDateFormat.html. |
Returns |
|
strToBA
Converts a string to a bytearray and assigns the result to a bytearray variable (or field).
...
Parameter | Description |
---|---|
| The resulting bytearray |
| The string value |
| The character encoding to use. If no encoding is specified, ISO-8859-1 (Latin 1) is used. If you specify character encoding, it must match the character encoding included in the standard charsets found in https://docs.oracle.com/javase/8/docs/api/java/nio/charset/Charset.html or the extended charset of the target Java implementation. If you specify a character encoding that cannot be found, a compilation error occurs. |
Returns | Nothing |
strToBigInt
Converts a string to a big integer. If the conversion was successful true
is returned.
...
Parameter | Description |
---|---|
| Big integer variable to set |
| String value |
Returns |
|
strToDate
Converts a string to a date and assigns the result to a date variable (or field). Returns true
if the conversion succeeded.
...
Parameter | Description | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
| Date identifier to set | ||||||||||
| Date value | ||||||||||
| If no format string is specified, the default system format is used as specified in the property The date formatting is based on standard Java syntax. For further information, see http://docs.oracle.com/javase/8/docs/api/java/text/SimpleDateFormat.html.
| ||||||||||
| An optional string stating the time zone to set. It is recommended that you specify the time zone id using the long format, e g "America/St_Johns". It is possible to also use the abbreviated format, e g "PST". However, this can lead to ambiguous results and should be avoided. If an invalid time zone format is entered, no error is returned. Instead, the time zone is automatically set to "GMT". If the time zone is specified in the | ||||||||||
Returns |
|
strToDouble
Converts a decimal string to a double and assigns the result to a double variable (or field). Returns true
if the conversion succeeded.
...
Parameter | Description |
---|---|
| Double identifier to set. |
| String value. |
Returns |
|
strToFloat
Converts a decimal string to a float and assigns the result to a float variable (or field). Returns true
if the conversion succeeded.
...
Parameter | Description |
---|---|
| Float identifier to set |
| String value |
Returns |
|
strToInt
Converts a decimal or hexadecimal string to an integer and assigns the result to an integer variable (or field). Returns true
if the conversion succeeded.
...
Parameter | Description |
---|---|
| Integer identifier to set. |
| String value. |
Returns |
|
Info | ||
---|---|---|
| ||
Provided that the field
|
strToLong
Converts a decimal or hexadecimal string to a long and assigns the result to an long variable (or field). Returns true
if the conversion succeeded.
...
Parameter | Description |
---|---|
| Long identifier to set |
| String value |
Returns |
|
strToBigDec
Converts a decimal or hexadecimal string to a BigDecimal and assigns the result to a BigDecimal variable (or field). Returns true if the conversion succeeded.
Code Block |
---|
boolean strToBigDec ( bigdec bigdecVar , string stringValue ) |
Parameter | Description |
---|---|
| BigDecimal identifier to set |
| String value |
Returns |
|
udrToString
Converts a UDR to a string. Each UDR will be preceded with the internal class name, and each of its field will be preceded with the field name.
...