Definition of the formatting characters
Definition of a format
The Adonix formats are strings defining a how a field must be presented in a screen. These formats use the following syntax :
n1 T1 n2 T2…or n1, n2…are optional numbers (1 by default) and T1, T2… for the permitted character types.
For example, 3X8A3# is a valid format. It will include both 15.2 (synonym of 15#.2#), or XXX4A.
The use of these formats is made wherever multiple formatting possibilities, according to the context, must be made. In particular, this is the case for fields depending on the country or legislation (Bank ID numbers, social security numbers, postcodes/zip codes...). Thus in the country file a certain number of formats are defined, the same for the currency file.
List of codes that can be used in ADONIX format
This grid is not exhaustive. In fact, dedicated codes can be created by developers for their own use.
Code |
Meaning of the code |
# |
Number (0 to 9). This is the default type containing a repetition factor followed by a . or not (according to whether decimal places are required) followed by a valid code. For example, 12.2 is a number containing 12 positions and 2 decimal places. |
A |
Uppercase letters (A-Z). |
has |
Lowercase letters (a-z). |
L |
Upper and lowercase letters (A-Z, a-z). |
B |
Uppercase letters + numbers. |
b |
Lowercase letters + numbers. |
C |
Upper and lowercase letters + numbers. |
H |
Hexadecimal numbers (0-9, A-F). |
O |
Enter a specified character for Yes and No (in general Y/N). |
X |
Any printable character. |
Y |
Number comprising a year. |
M |
Number or letter comprising a month. |
D |
Number comprising a day. |
. |
Decimal separator position for numbers with fixed format. |
F |
Number with floating format. |
H |
Number component for current hour. |
M |
Number component for the minutes. |
S |
Number component for the seconds |
Other than the "standard" types described above, it is possible to use up to 19 type set up at the application level. These types are defined by the TUL1, TUL2… TUL19 parameters defined at the level of the folder. In these parameters, a type code is defined, according to the type codes that make it up, followed by a ":" character and a list of sub-type characters. The following grid gives the default type set up in the software package:
Type code |
Sub-types |
Characters |
Meaning |
c |
A# |
+ / _ |
Uppercase letters, numbers and the +, / and _ (underline) characters. |
d |
c |
$* ?% |
The same plus $ * ? % |
e |
c |
_ |
The same plus the underline character. |
g |
AX |
|
Uppercase letters or any characters. |
q |
B |
|
Uppercase letters or numbers. |
u |
B |
_ |
Uppercase letters or numbers plus the underline character. |
v |
u |
- |
The same plus the minus character. |