Syntax
ATTACHANDSPACE string_expression variable
Parameters
AttachAndSpace (previously known as Attach&Space) can be abbreviated as ATS.
string_expression
The text or numeric value to attach to the following result qualifier. If a numeric value is used, it is converted to text.
variable
The result variable.
If the value of this variable is equal to the Glb.Spaces built-in segment attribute, the result is the value of the first qualifier or literal (without leading spaces, unless it contains leading spaces).
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.