"+" Operator

將兩個表示式相加或組合。

語法


Result = Expression1 + Expression2

參數:

Result:包含相加或合併結果的任意數值型表示式。

Expression1, Expression2:要組合或相加的任意數值型表示式。

示例:


Sub ExampleAddition1
    Print 5 + 5
End Sub
 
Sub ExampleAddition2
Dim iValue1 As Integer
Dim iValue2 As Integer
    iValue1 = 5
    iValue2 = 10
    Print iValue1 + iValue2
End Sub

Please support us!