5-4 Design functions
This section describes the design functions that you can use for calculation-formulas and edit-formulas.
Restriction
You can only use "NUMSTR", "NUMVAL", "SEI2WA", "SEI2WA1", "SEI2WA1Z", "WA2SEI", "NENGO", and "WYEAR" in Japanese forms.
Caution
The string functions "AT", "LEFT", "LEN", "RIGHT" and "MID" do not support surrogate pair characters. Therefore, to use surrogate pair characters, use functions that have the character "W" at the end of the function name such as "ATW", "LEFTW", "LENW", "RIGHTW" and "MIDW".
String functions
Function name | Feature |
---|---|
Retrieves numeric-type data indicating what digit position the specified string is in from the beginning, when counting half-width characters as 1 digit and full-width characters as 2 digits. If the string is located at the beginning, 1 is retrieved. Whether full-width or half-width is determined based on the SVF-specific specification. | |
Retrieves numeric-type data indicating what character position the specified string is in from the beginning of the text-type data. If the string is located at the beginning, 1 is retrieved. | |
Retrieves a partial string of the specified number of digits from the beginning, counting half-width characters as 1 digit and full-width characters as 2 digits. Whether full-width or half-width is determined based on the SVF-specific specification. | |
Retrieves a partial string of the specified number of characters from the beginning. | |
Retrieves the number of digits of data as numeric-type data, when counting half-width characters as 1 digit and full-width characters as 2 digits. Whether full-width or half-width is determined based on the SVF-specific specification. | |
Retrieves the number of characters of data as numeric-type data. | |
Repeats printing a string for the specified number of times. | |
Retrieves a partial string of the specified number of digits from the end of the data, counting half-width characters as 1 digit and full-width characters as 2 digits. The last digit is 1. Whether full-width or half-width is determined based on the SVF-specific specification. | |
Retrieves a partial string of the specified number of characters from the end of the data. The last digit is 1. | |
Inserts a half-width space for the specified number of characters. | |
Retrieves a partial string of the specified number of digits, starting at a specified digit from the beginning of the string, counting half-width characters as 1 digit and full-width characters as 2 digits. Whether full-width or half-width is determined based on the SVF-specific specification. | |
Retrieves a partial string of the specified number of characters, starting at a specified point. | |
Replaces a character or string with the specified string. | |
Reverses the string order. |
Conversion functions
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. Specify a decimal value in the range of 0 to 65,535. | |
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. |
Date functions
Function name | Feature |
---|---|
Converts date-type data (YYYYMMDD) into text-type data (YYYY/MM/DD). | |
Retrieves the system date. | |
Retrieves the system date. | |
Converts text-type data (YYYY/MM/DD) into date-type data (YYYYMMDD). | |
Retrieves the name of the day of the week as text-type data from date-type data (YYYYMMDD). | |
Adds (or subtracts) the specified number of days to (or from) a date, and retrieves the result as date-type data (YYYYMMDD). | |
Retrieves only the Western calendar year as numeric-type data from date-type data (YYYYMMDD). | |
Retrieves only the Japanese calendar year as numeric-type data from date-type data (YYYYMMDD). | |
Retrieves only the month as numeric-type data from date-type data (YYYYMMDD). | |
Retrieves only the month as text-type data from date-type data (YYYYMMDD). | |
Retrieves only the day as numeric-type data from date-type data (YYYYMMDD). | |
Calculates the day of the week from date-type data (YYYYMMDD) and retrieves the corresponding numeric-type data. | |
Calculates the number of days within the period and retrieves the result as numeric-type data. | |
Converts the Western calendar date-type data to the Japanese calendar date, and retrieves the result as text-type data. | |
Converts the Japanese calendar text-type data to the Western calendar date, and retrieves the result as date-type data. | |
Retrieves the Era name of the Japanese calendar from Western calendar date-type data. |
Time functions
Function name | Feature |
---|---|
Converts time-type data (HHMMSS) into text-type data (HH:MM:SS). | |
Retrieves the system time. | |
Retrieves the system time. | |
Converts text-type data (HH:MM:SS) into time-type data (HHMMSS). | |
Retrieves only hours (HH) as numeric-type data from time-type data (HHMMSS). | |
Retrieves only minutes (MM) as numeric-type data from time-type data (HHMMSS). | |
Retrieves only seconds (SS) as numeric-type data from time-type data (HHMMSS). |
Statistical functions
Function name | Feature |
---|---|
Calculates the total value in numeric fields. | |
Calculates the average value in numeric fields. | |
Calculates the minimum value in text and numeric fields. | |
Calculates the maximum value in text and numeric fields. | |
Calculates the total number of output data items in text and numeric fields. |
Conditional Functions
Function name | Feature |
---|---|
Calculates SUM, AVG, MIN, MAX, and COUNT using data matching the specified conditions. |
Printing format functions
Function name | Feature |
---|---|
Edits and prints data in the format you specified. |
Other functions
System variables
Variable name | Feature |
---|---|
Retrieves the page number (sequential number) for a page break unit that occurs due to a key break as numeric-type data. | |
Used to determine whether a page break unit that occurs due to a key break is the first page. | |
Used to determine whether a page break unit that occurs due to a key break is the last page. | |
Retrieves the group sequential number of the page as numeric-type data. | |
Retrieves the total number of pages as numeric-type data. | |
Retrieves the total number of pages for each key break as numeric-type data. | |
Retrieves the report sequential number between the VrInit and VrQuit functions as numeric-type data. |
Global variables
Variable name | Feature |
---|---|
The global variables are variables that you can define and use as parameter values of valid text-type data between the VrInit and VrQuit functions. |