Products Downloads


French version


 

 

ADELIA

VADELIA

SADELIA

WADELIA

MADELIA

(I/B)

(I/B)

(B)

(I/B)

(I)

 

Description

This predefined function is used to adjust a character string to the right.

 

Syntax

Result = &RIGHT_ADJUST(String)

 

Parameters

 

Description

Contents

Controls

Result

Alphanumeric

variable.

Right-justified character string.

The result field is cleared before the function is run.

 

String

Alphanumeric variable or constant.

Character string which is to be right-justified.

Mandatory parameter.

 

Note:

Blank characters located on the right of the string are ignored.

If the result field is shorter than the string to be right-justified, the result is truncated on the left.

When this function is used in a simple assignment, the words are right-justified in relation to the result variable. When this function is used in a concatenation expression, the right justification is performed in relation to an internal variable that is the same size as the function's String parameter.

 

Example

NAME = 'JOHN SMITH '

NEW_NAME = &RIGHT_ADJUST(NAME)

* NEW_NAME (20-char. long) is equal to: °°°°°°°°°°JOHN°SMITH

*

NAME_8 = &RIGHT_ADJUST(NAME)

* NAME_8 (8-char. long) is equal to: HN°SMITH

 

List of predefined functions by topic

 

↑ Top of page

  • Aucune étiquette