Object.Clear Method
| Explanation | Initializes the object's default properties. Initialization Initialization is done according to the data type of the default property ( ValueType of the object). (It does not return to the initial value set when the object was created). For example, a String object is initialized to an empty string, and a Number object is initialized to 0. The Clear method differs from assigning an initial value to a default property in that it can be initialized without being aware of the details of the object to be operated. Even if the operation target has different values to be initialized such as Number object and String object , it can be safely initialized by the same procedure by the Clear method. Default property The default property is the Value property in many classes, but some classes have other properties as default properties. Also, some classes do not have default properties. The Clear method has no effect on classes that do not have default properties. See the documentation for each class for default properties. Array object Executing the Clear method on an array object does not affect each element object. The Clear method need to be executed individually for the array element object. |
| Call format | obj.Clear( ) |
| Return value | None |
| Arguments | None |
| Exception | None |
| Example of use | |
| Related item | ClearChild methods |