AttachAndSpace

Syntax

ATTACHANDSPACE string_expression variable

Parameters

AttachAndSpace (previously known as Attach&Space) can be abbreviated as ATS.

Description

The AttachAndSpace logic command concatenates the value of a variable or literal to that of a second variable after the last non-whitespace character, inserting a space between the two values, and stores the result in the second variable.

The behavior of the AttachAndSpace logic command can be replicated using the '&+' concatenation operator. Use of operators, where possible, rather than manipulative logic commands, is the LDL+ preferred format.

Refer to Attach for more information on data truncation, restrictions, and other issues. The AttachAndSpace logic command functions similarly to the Attach logic command.

Example

This example uses a SecondName result of length 20.

SecondName := "Susan Anne"
AttachAndSpace "De Leon" SecondName : Sets SecondName to "Susan Anne De Leon"
                                    : and Glb.Length to 18.