In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 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 Erase sentence in VBS". The content of the explanation in this article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn the usage of Erase sentence in VBS.
Reinitializes the elements of a fixed-size array and frees up storage space for the dynamic array.
Erase array
The array parameter is the name of the array variable to clear.
Description
It is important to determine whether an array is a fixed-length array (regular) or a dynamic array because Erase operates differently depending on the type of array. Erase does not need to restore memory for fixed-size arrays. Erase sets the elements of a fixed array according to the following table:
The influence of array type Erase on fixed array elements fixed numeric array sets each element to 0. The fixed string array sets each element to a zero-length string ("). The object array sets each element to a special value of Nothing.
Erase frees the memory used by dynamic arrays. Before the program references the dynamic array again, the dimension of the array variable must be redefined using the ReDim statement.
The following example shows how to use an Erase statement.
Dim NumArray (9) Dim DynamicArray () ReDim DynamicArray (9) 'allocates storage space. Erase NumArray 'every element is reinitialized. Erase DynamicArray 'frees up the memory occupied by the array. Thank you for reading, the above is the content of "the usage of Erase sentence in VBS". After the study of this article, I believe you have a deeper understanding of the usage of Erase sentence 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!
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.