Microsoft® Visual Basic® Scripting Edition Is Operator |
Language Reference Version 1 |
Compares two object reference variables.
result = object1 Is object2The Is operator syntax has these parts:
Part Description result Any numeric variable. object1 Any object name. object2 Any object name.
If object1 and object2 both refer to the same object, result is True; if they do not, result is False. Two variables can be made to refer to the same object in several ways.In the following example, A has been set to refer to the same object as B:
The following example makes A and B refer to the same object as C:Set A = BSet A = C Set B = C