+ Concatenation
Syntax
Result as C = Operand1 as C + Operand2 as C
Result as C = Operand1 as D + Operand2 as C
Result as C = Operand1 as Y + Operand2 as C
Result as C = Operand1 as N + Operand2 as C
Arguments
- Operand1Character Date Shortime Numeric
A character, date, or numeric value.
- Operand2
A character value or blank string ("").
Description
This operator concatenates (combines) two character strings into a single new character string. Put another way, The concatenation operator appends Operand2 (a character value) to Operand1. If Operand1 is not a character value, it is automatically converted to a character value before the concatenation operation. In the resulting character string, the entire value stored in the first field is positioned before the value from the second field.
Examples:
dim s as C
dim dd as D
dd = {1/31/03}
s = dd + ""
? s
= "01/31/2003"
dim nn as N
nn = 12
s = nn + ""
? s
= "12"
dim cc as C
cc = "word1"
s = cc + "word2"
? s
= "word1word2"
dim firstname as c = "Beverly "
dim lastname as c = "Brine "
? firstname + lastname
= "Beverly Brine "See also Character Addition Functions.
See Also