5-4-2 Conversion functions
SVFX-Designer provides the following conversion functions.
Restriction
"NUMSTR" and "NUMVAL" can only be used in Japanese forms.
Function name | Feature |
---|---|
Converts full-width characters into half-width characters. | |
Converts half-width characters into full-width characters. | |
Converts uppercase alphabetical characters into lowercase. | |
Converts lowercase alphabetical characters into uppercase. | |
Retrieves the absolute value as numeric-type data. | |
Retrieves a character as numeric-type data (decimal). | |
Converts decimal data into a character. | |
Truncates fractional digits to display data as an integer. | |
Rounds off numeric-type data beginning at the specified digit. | |
Converts numeric-type data into text-type data. | |
Converts text-type data into numeric-type data. | |
Converts numeric-type data into text-type data (Kanji numbers). | |
Converts text-type data (Kanji numbers) into numeric-type data. |
TOASC
Feature | Converts full-width characters into half-width characters. |
---|---|
Format | TOASC(string) The characters that can be converted are as follows. △!"#$%&'()*+,-./ 0123456789:;<=>? @ABCDEFGHIJKLMNO PQRSTUVWXYZ[¥]^_ `abcdefghijklmno pqrstuvwxyz{|}~ Reference
|
Settings | In "string", specify the text-type data to be converted, or the name of the field that contains the data. |
Usage examples | When converting the character string "123ABCabc" to a half-width character string
RestrictionCharacters that are not applicable are not converted. |
TOJIS
Feature | Converts half-width characters into full-width characters. |
---|---|
Format | TOJIS(string) The characters that can be converted are as follows. ▲!"#$%&'()*\+,-./ 0123456789:;<=>? @ABCDEFGHIJKLMNO PQRSTUVWXYZ[\]^_ `abcdefghijklmno pqrstuvwxyz{|}~ Reference
|
Settings | In "string", specify the text-type data to be converted, or the name of the field that contains the data. |
Usage examples | When converting the character string "123ABCabc" to a full-width character string
RestrictionCharacters that are not applicable are not converted. |
TOLOWER
Feature | Converts uppercase alphabetical characters into lowercase. |
---|---|
Format | TOLOWER(string<,conversion mode>)
|
Settings | In "string", specify the text-type data to be converted, or the name of the field that contains the data. |
Usage examples |
ReferenceFull-width characters are shown in bold. RestrictionCharacters that are not applicable are not converted. |
TOUPPER
Feature | Converts lowercase alphabetical characters into uppercase. |
---|---|
Format | TOUPPER(string<,conversion mode>)
|
Settings | In "string", specify the text-type data to be converted, or the name of the field that contains the data. |
Usage examples |
ReferenceFull-width characters are shown in bold. RestrictionCharacters that are not applicable are not converted. |
ABS
Feature | Retrieves the absolute value as numeric-type data. |
---|---|
Format | ABS(numeric_value_or_numeric_field_name) |
Settings | In "numeric_value_or_numeric_field_name", specify the numeric value to retrieve the absolute value, or the name of the field that contains the data. CautionBecause the value is retrieved as numeric-type data, if the function is used in the edit-formula, the value must be converted into text-type data by using the FORMAT or STR function before using the result. |
Usage examples | Prerequisite When "-65" is entered in the numeric field "I1"
|
ASC
Feature | Retrieves a character as numeric-type data (decimal). |
---|---|
Format | ASC(character_or_character_field_name) |
Settings | In "character_or_character_field_name", specify the text-type data to be converted to ASCII code, or the name of the field that contains the data. RestrictionIVS and Thai are not supported. |
Usage examples | Prerequisite When data "A" is entered in the text field "S1"
|
CHR
Feature | Converts decimal data into a character. |
---|---|
Format | CHR(numeric_value_or_numeric_field_name) |
Settings | In "numeric_value_or_numeric_field_name", specify the numeric-type data to be converted to character data, or the name of the field that contains the data. ReferenceThe decimal number specified here is the Unicode code in decimal format. Restriction
|
Usage examples | Prerequisite When "65" is entered in the numeric field "I1"
|
INT
Feature | Truncates fractional digits to display data as an integer. |
---|---|
Format | INT(numeric_value_or_numeric_field_name) |
Settings | In "numeric_value_or_numeric_field_name", specify the numeric-type data to convert into an integer by truncating the digits after the decimal point, or the name of the field that contains the data. CautionBecause the value is retrieved as numeric-type data, if the function is used in the edit-formula, the value must be converted into text-type data by using the FORMAT or STR function before using the result. |
Usage examples | Prerequisite When "2.567" is entered in the numeric field "I1"
|
ROUND
Feature | Rounds off numeric-type data beginning at the specified digit. | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Format | ROUND(numeric_value_or_numeric_field_name,index) | ||||||||||||||||||||||||
Settings |
How to set the number of digits
Settings for "index" to begin rounding off "123.456" at the corresponding digit
CautionBecause the value is retrieved as numeric-type data, if the function is used in the edit-formula, the value must be converted into text-type data by using the FORMAT or STR function before using the result. | ||||||||||||||||||||||||
Usage examples | Prerequisite When "123.456" is entered in the numeric field "I1"
|
STR
Feature | Converts numeric-type data into text-type data. | ||||||
---|---|---|---|---|---|---|---|
Format | STR(numeric_value_or_numeric_field_name<,total_length<,length_of_fractional_part>>) | ||||||
Settings |
Reference
| ||||||
Usage examples | Prerequisite When "123.456" is entered in the numeric field "I1"
|
VAL
Feature | Converts text-type data into numeric-type data. |
---|---|
Format | VAL(numeric_string_or_character_field_name) |
Settings |
CautionBecause the value is retrieved as numeric-type data, if the function is used in the edit-formula, the value must be converted into text-type data by using the FORMAT or STR function before using the result. |
Usage examples | Prerequisite When "123.456" is entered in the text field "S1"
|
NUMSTR
Feature | Converts numeric-type data into text-type data (Kanji numbers). |
---|---|
Format | NUMSTR(numeric_value_or_numeric_field_name<,conversion mode>)
|
Settings | In "numeric_value_or_numeric_field_name", specify the numeric-type data to convert, or the name of the field that contains the data. Reference
|
Usage examples | Prerequisite When "123456789" is entered in the numeric field "I1"
|
NUMVAL
Feature | Converts text-type data (Kanji numbers) into numeric-type data. |
---|---|
Format | NUMVAL(numeric_string_or_character_field_name<,conversion mode>)
|
Settings |
CautionBecause the value is retrieved as numeric-type data, if the function is used in the edit-formula, the value must be converted into text-type data by using the FORMAT or STR function before using the result. Reference
|
Usage examples |
RestrictionCharacters that are not applicable are not converted. |