Operator * (Multiply)
Multiplies two numeric expressions
Declare Operator * ( ByRef lhs As Integer, ByRef rhs As Integer ) As Integer
Declare Operator * ( ByRef lhs As UInteger, ByRef rhs As UInteger ) As UInteger
Declare Operator * ( ByRef lhs As LongInt, ByRef rhs As LongInt ) As LongInt
Declare Operator * ( ByRef lhs As ULongInt, ByRef rhs As ULongInt ) As ULongInt
Declare Operator * ( ByRef lhs As Single, ByRef rhs As Single ) As Single
Declare Operator * ( ByRef lhs As Double, ByRef rhs As Double ) As Double
result = lhs * rhs
lhs
Returns the product of two multiplicands.
Operator * (Multiply) returns the product of two multiplicands.
Neither operand is modified in any way.
This operator can be overloaded to accept user-defined types.
Output:
Syntax
Declare Operator * ( ByRef lhs As Integer, ByRef rhs As Integer ) As Integer
Declare Operator * ( ByRef lhs As UInteger, ByRef rhs As UInteger ) As UInteger
Declare Operator * ( ByRef lhs As LongInt, ByRef rhs As LongInt ) As LongInt
Declare Operator * ( ByRef lhs As ULongInt, ByRef rhs As ULongInt ) As ULongInt
Declare Operator * ( ByRef lhs As Single, ByRef rhs As Single ) As Single
Declare Operator * ( ByRef lhs As Double, ByRef rhs As Double ) As Double
Usage
result = lhs * rhs
Parameters
lhs
The left-hand side multiplicand expression.
rhsThe right-hand side multiplicand expression.
Return Value
Returns the product of two multiplicands.
Description
Operator * (Multiply) returns the product of two multiplicands.
Neither operand is modified in any way.
This operator can be overloaded to accept user-defined types.
Example
Dim n As Double
n = 4 * 5
Print n
Sleep
n = 4 * 5
Print n
Sleep
Output:
20
Dialect Differences
- In the -lang qb dialect, this operator cannot be overloaded.
Differences from QB
- None
See also