Products Downloads


French version


 

 

ADELIA

VADELIA

SADELIA

WADELIA

MADELIA

(I/B)

(I/B)

(B)

(I/B)

(I)

 

Description

This predefined function is used to check whether the character string contains at least one space.

 

Syntax

Result = &CONTAINS_SPACE(String)

 

Parameters

 

Description

Contents

Controls

Result

One-position alphanumeric variable.

Possible values:

0 contains no spaces

1 contains spaces

 

String

Alphanumeric constant or variable.

Character string to be checked.

Mandatory parameter.

 

Note: If there are blank characters at the end of the string, those are ignored on execution. Therefore, if the field does not contain any character (i.e. if it empty), it is assumed that it contains no space.

 

Example

STRING = 'A CDEF HIJ'

TEST_BLANK = &CONTAINS_SPACE(STRING)

*

* TEST_BLANK is equal to 1 (it contains two spaces).

*

STRING = 'A1CDEFGHIJ'

TEST_BLANK = &CONTAINS_SPACE(STRING)

*

* TEST_BLANK is equal to 0 (no space).

*

STRING = 'A1CDEFG '

TEST_BLANK = &CONTAINS_SPACE(STRING)

*

* TEST_BLANK is equal to 0 (no space except at the end).

*

 

List of predefined functions by topic

 

↑ Top of page

  • Aucune étiquette