Xbasic

- (Concatenation with Trim Operator)

Syntax

Result as C = Operand1 as C - Operand2 as C

Arguments

Operand1

A character, date, or numeric value.

Operand2

A character value or NULL ("").

Description

The Concatenation with Trim operator removes trailing spaces from Operand1 and then appends Operand2 to Operand1. In other words, this operator strips trailing blanks from the first field and then concatenates it with the second field to form a single new character string. See also Character Addition Functions

 Example:

dim cc as C
cc = "word "
? cc - ""
= "word"
? cc - "abc"
= "wordabc"

FIRSTNAME - LASTNAME --> "BeverlyBrine           " FIRSTNAME - " " + LASTNAME - "" --> "Beverly Brine"

See Also