CHGFMT

Contents


"Chgfmt" is used to change the format of a mask field.

Syntax

Chgfmt[ class] [ id_zone]With expr_c

Parameters

Element

Description

Restrictions

class

In the absence of this parameter, the default mask is used.

class describes an open mask by Mask order.

id_zone

Identification of a field zone under one of the following forms:
variable_name
variable_name '('
exp_ind ')'

The field where the name is given must be defined in the corresponding mask.

exp_ind

Integer expression where the value is the index for the variable

The index must be in the interval defined by the repetition factor.

expr_c

Expression of the type Char containing a valid format.

Format adapted to the expression type

Examples

# Format change for the AMTVAL1 field in the TXM1 screen
# to right justify an amount displayed in an alpha field
Chgfmt[M:TXM1]AMTVAL1 With "K>:18"

Description and comments

"Chgfmt" is used to change the format of a mask field.

Associated errors

Error

Description

ERVARI (6)

Field does not exist in the given mask.

ERCLAS (7)

Mask not declared.

Associated keywords

chgtbk - chgtzn - chgtfd - Chgstl - titcol - Format$


CONTENTS

Copyright © Sage 1999 - 2007