ADXFMT

Contents


adxfmt assigns a default format to each type of field and allows you to modify them.

 

Class, Type, and Dimension

[S]adxfmt(255)(8) Char

 

Examples

 # Back up the "dual precision" formats
 [L]SVGDBL = [S]adxfmt(5)
# Replace it with 15 floating digits
[S]adxfmt(5) = "15F"

 

Description and Comments

adxtfmt is an Adonix system variable of the table type of 8 Char of 255 characters, which provides a default format according to the type of field of the file managed.

adxfmt is used in the following situations:

·         Creation of the Default Entry Screen in File Validation The various fields of the file are implemented in the screen created accordingly and the format is the one set by adxfmt for each field. For alphanumeric fields, however, the length of the field of the file will specify the number of characters to be entered.

·         Entry of an Open Screen with an Associated File By using the ([ABRF]) SCREEN_NAME Screen syntax, where [ABRF] is the abbreviation of a file that is already open, you are performing a file screen association. If you enter this screen, adonix will then be able to find their type and have them entered according to the one set by adxfmt, for the fields of the screen that have the same name as the fields of the file and that have no format defined.

Table that assigns the various indexes of adxfmt and the default value with which it is initialized when Adonix is run.

Index

Field Type

Value

0

Description

##

1

Short Integer

5#

2

Long Integer

10#

3

Decimal

9.2

4

Floating

5.2

5

Dual Precision

9.2

6

Alphanumeric

X

7

Date

DD2

Note:

- The descriptions are most often used in conjunction with a set of descriptions (user, message, printer, etc.), but Adonix
is incapable of knowing which one. On the other hand, a description file field will always contain a numeric value included between 0 and 255. The default value prevents you from entering too large of a number, but will not allow the display of a number greater than 99.

- For Alphanumeric fields, the number of characters is assigned in the file structure. Assign the
type of character. The "X" type is quite suitable since it allows you to enter and display all characters.

adxfmt is usually set by one of the processes called "APL" that is launched when you start up the application. Otherwise, the default values will be saved.

 

Associated Errors

No associated error

 

Associated Keywords

MASK


CONTENTS


Copyright © Sage 1999 - 2007