Ich habe das mal mit dem Operator + getestet, der in Script überladen ist.
Sub Click(Source As Button)
Dim s As String
Dim i As Integer
s = "test"
i = 1
Msgbox s & i
Msgbox s + s
Msgbox i + i
Msgbox s + i 'Hier knallt's dann
End Sub
Dazu aus der Hilfe:
Plus (+) operator
Syntax
expr1 + expr2
Elements
expr1, expr2
Any String expressions, or any of the following:
Numeric expression: LotusScript converts it to its text representation (if plus is interpreted as concatenation).
NULL: LotusScript treats it as NULL. If either expression is NULL, the result is NULL.
EMPTY: LotusScript treats it as a zero-length String value.
Return value
The result is a String or a Variant of type String, if either of the operands is a Variant.
Usage
Use the ampersand (&) operator to ensure a concatenation operation. The plus (+) operator concatenates two character strings, but LotusScript determines whether to interpret the plus as a concatenation operator or an addition operator on the basis of the operands in the expression in which it appears.
Also work's as designed.
Irgendwie widerstrebt es mir, den & so zu verwenden. Aber man lernt ja nie aus.
Andreas