$LEADING_LISTID_SPACES

Recognize or ignore leading spaces in getitem/id or putitem/id.

$LEADING_LISTID_SPACES {=} 1 | 0

Arguments

  • 1—causes Uniface to recognize leading spaces in getitem/id or putitem/id.

    If indexes are used in getitem/id or putitem/id with leading spaces, by default they are stripped. If the switch is set to TRUE, the spaces are used as normal string values.

  • 0—ignore leading spaces in getitem/id or putitem/id; this is the default if $LEADING_LISTID_SPACES is not specified.

    If $LEADING_LISTID_SPACES is specified without parameters, the switch defaults to 1.

$LEADING_LISTID_SPACES

The following example shows the results of setting $LEADING_LISTID_SPACES to TRUE and to FALSE:

$1=""
putitem/id $1,"01","01"
putitem/id $1," 01"," 01"
putitem/id $1,"  01","  01"
putmess $1

getitem/id $2,$1," 01"
putmess $2

If $LEADING_LISTID_SPACES is set to 1, the list $1 contains:

01=01; 01= 01;  01=  01

and $2 is .

" 01"
;(space,0,1)

If $LEADING_LISTID_SPACES is set to FALSE, the list $1 will contain:

  01=  01

and $2 is

"  01"
;(space,space,0,1)

  .

Related Topics