QXREP_SPACES

 

Specifies the maximum number of spaces any string can have (in a row) not to be split in the Informix® compatibility mode.

 

Syntax:

 

QXREP_SPACES={any integer}

 

Usage and examples:

 

There are cases when strings are split into shorted strings, e.g.:

§      in the Informix® compatibility mode,

§      when converting classic (.per) forms into .fm2 ones.

 

In these cases, string containing several spaces in a row can be split in places where these spaces occur:

 

QXREP_SPACES=2

 

By default, the maximum number of spaces any string can have (in a row) not to be split is equal to 1.

 

You can change this number by

setting the QXREP_SPACES environment variable in env.properties (for compilation) and inet.env (for runtime),

changing the value of gui.layout.break.max_spaces in fglprofile.std.

 

The default behavior in achieved if none of these variables is set (neither QXREP_SPACES nor gui.layout.break.max_spaces).

 

In the table below, you can see how the string with spaces is split (for default values, i.e. QXREP_SPACES=1).

The table also gives examples of how strings are split if they contain the symbols considered the beginning and the end of the new string (see QXBREAKCH_START and QXBREAKCH_END for details).

 

abc def ghi

abc def ghi

abc   def   ghi

abc

def

ghi

abc def   ghi

abc def

ghi

 

abc   def ghi

abc

def ghi

 

abc   +def

abc

+def

 

abc   :def

abc

:

def

abc+   def

abc

+

def

abc:   def

abc:

def

 

 

When a string is split in the place where more than max spaces occur, these spaces are trimmed.

 

 

 

In env.properties and inet.env, QXREP_SPACES must be set together with QX_COMPAT=Informix4GL.

 

 

Related articles:

fglprofile.std

Converting classic Lycia forms

Compatibility mode

QXBREAKCH_START

QXBREAKCH_END