In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-22 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
This article mainly explains "the usage of Property Set statement in VBS". Interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Let's let Xiaobian take you to learn "the usage of Property Set statement in VBS"!
In the Class block, declare the name, parameters, and code that make up the body of the Property procedure that sets the reference to the object.
[Public | Private] Property Set name(
[arglist,] reference
)
[statement]
[Exit Property]
[statement]
End Property
Parameter Public
Indicates that the Property Set procedure can be accessed by all other procedures in all scripts.
Private
Indicates that a Property Set procedure can only be accessed by other procedures in the same Class block as it is declared.
name
The name of the Property Set procedure; follows standard variable naming conventions, although the name can be the same as the Property Get or Property Let procedure in the same Class block.
arglist
A list of variables representing the parameters passed to the Property Set procedure when it is called. Multiple arguments are separated by commas. In addition, the Property Set procedure will always have one more parameter than its corresponding Property Get procedure. This extra parameter is the object assigned.
reference
Variable containing the object reference to the right of the object reference used for object reference assignment.
statement
Any set of statements to be executed in the body of a Property Set procedure.
Note that each Property Set statement must define at least one parameter for the procedure it defines. When the procedure defined by the Property Set statement is called, the actual object reference for the property is provided in this required parameter (or the last parameter if there are multiple parameters). In the previous syntax, this parameter is called a reference.
description
Unless explicitly specified using Public or Private, the Property Set procedure is set to the default public mode, that is, all other procedures in the script are visible. Local variables in Property Set procedures are not saved when different procedures are called.
You cannot define a Property Set procedure in any other procedure, such as Function or Property Let.
The Exit Property statement causes an immediate exit from the Property Set procedure. The program continues to execute statements after calling the Property Set procedure. There is no limit to the number of Exit Property statements and they can appear anywhere in the Property Set procedure.
Like Function and Property Get procedures, Property Set procedures are separate procedures that can take several parameters, execute a series of statements, and change the values of parameters. However, unlike Function and Property Get procedures, which both return values, Property Set procedure objects refer to the left side of an assignment (Set statement).
At this point, I believe that everyone has a deeper understanding of "the usage of Property Set statements in VBS". Let's actually operate it! Here is the website, more related content can enter the relevant channels for inquiry, pay attention to us, continue to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.