The function of Is operator in VBS
This article mainly explains "the role of Is operator in VBS". The content of the explanation is simple and clear, and it is easy to learn and understand. Please follow Xiaobian's train of thought to study and learn "the role of Is operator in VBS".
Compare two object reference variables.
Result = object1 Is object2
Parameter result
Any numeric variable.
Object1
Any object name.
Object2
Any object name.
Description
If both object1 and object2 refer to the same object, result is True; or result is False. There are many ways to make two variables reference the same object.
In the following code, make the object referenced by A the same as the object referenced by B.
Set A = B
Make the objects referenced by An and B the same as those referenced by C in the following code:
Set A = CSet B = C thank you for reading, the above is the content of "the role of Is operator in VBS". After the study of this article, I believe you have a deeper understanding of the role of Is operator in VBS, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!