"-" 运算符

两个数值相减。

语法:


Result = Expression1 - Expression2

参数:

Result」: 含有相减结果的任意数字表达式。

Expression1, Expression2」:要进行减法运算的任意数字表达式。

示例:


Sub ExampleSubtraction1
    Print 5 - 5
End Sub
 
Sub ExampleSubtraction2
Dim iValue1 As Integer
Dim iValue2 As Integer
    iValue1 = 5
    iValue2 = 10
    Print iValue1 - iValue2
End Sub

请支持我们!