Enable JavaScript in the browser to display LibreOfficeDev Help pages.

Erase Statement

নির্দিষ্ট আকারের একটি অ্যারে থেকে অ্যারে উপাদানের বিষয়বস্তু মুছে ফেলা হয় এবং বিভিন্ন আকারের অ্যারে দ্বারা ব্যবহৃত মেমোরি রিলিজ করে থাকে।

Syntax:

Erase syntax


  Erase array1 [, array2 [,...]]

Parameters:

array list - A comma delimited list of arrays to be erased.

Example:


  Sub Erase_Example
      a = Array(1,2,3) :  b= Array("z","y","x") : c=Array(a,b)
      Erase a, c(Ubound(c)) ' b and c(0) are unchanged
      Erase b, c(0) ' everything gets cleared
  End Sub

Dim or ReDim statements

Array or DimArray functions

Lbound and Ubound functions