64 lines
No EOL
3.5 KiB
XML
64 lines
No EOL
3.5 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<!--
|
|
* This file is part of the LibreOffice project.
|
|
*
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
*
|
|
* This file incorporates work covered by the following license notice:
|
|
*
|
|
* Licensed to the Apache Software Foundation (ASF) under one or more
|
|
* contributor license agreements. See the NOTICE file distributed
|
|
* with this work for additional information regarding copyright
|
|
* ownership. The ASF licenses this file to you under the Apache
|
|
* License, Version 2.0 (the "License"); you may not use this file
|
|
* except in compliance with the License. You may obtain a copy of
|
|
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
|
-->
|
|
|
|
<helpdocument version="1.0">
|
|
<meta>
|
|
<topic id="textsbasicshared03104700xhp" indexer="include" status="PUBLISH">
|
|
<title id="tit" xml-lang="en-US">Erase Statement</title>
|
|
<filename>/text/sbasic/shared/03104700.xhp</filename>
|
|
</topic>
|
|
<history><created date="2005-04-25T14:43:31">Erase</created></history>
|
|
</meta>
|
|
|
|
<body>
|
|
|
|
<section id="erase">
|
|
<bookmark xml-lang="en-US" branch="index" id="bm_id624713"><bookmark_value>Erase statement</bookmark_value>
|
|
</bookmark>
|
|
<h1 id="par_idN10548"><link href="text/sbasic/shared/03104700.xhp">Erase Statement</link></h1>
|
|
<paragraph role="paragraph" id="par_idN10558" xml-lang="en-US">Erases the contents of array elements of fixed size arrays, and releases the memory used by arrays of variable size.</paragraph>
|
|
</section>
|
|
|
|
<embed href="text/sbasic/shared/00000003.xhp#functsyntax"/>
|
|
<paragraph role="image" id="par_id831588865616326"><image src="media/helpimg/sbasic/Erase_statement.svg" id="img_id651588865616326"><alt id="alt_id281588865616326">Erase syntax</alt></image></paragraph>
|
|
<bascode>
|
|
<paragraph role="bascode" id="par_idN105E6" xml-lang="en-US">Erase array1 [, array2 [,...]]</paragraph>
|
|
</bascode>
|
|
|
|
<embed href="text/sbasic/shared/00000003.xhp#functparameters"/>
|
|
<paragraph role="paragraph" id="par_idN105ED" xml-lang="en-US"><emph>array list</emph> - A comma delimited list of arrays to be erased.</paragraph>
|
|
|
|
<embed href="text/sbasic/shared/00000003.xhp#functexample"/>
|
|
<bascode>
|
|
<paragraph role="bascode" id="bas_id551588866531991" localize="false">Sub Erase_Example</paragraph>
|
|
<paragraph role="bascode" id="bas_id941588866552486" localize="false"> a = Array(1,2,3) : b= Array("z","y","x") : c=Array(a,b)</paragraph>
|
|
<paragraph role="bascode" id="bas_id821588866562452" xml-lang="en-US"> Erase a, c(Ubound(c)) ' b and c(0) are unchanged</paragraph>
|
|
<paragraph role="bascode" id="bas_id701588866563382" xml-lang="en-US"> Erase b, c(0) ' everything gets cleared</paragraph>
|
|
<paragraph role="bascode" id="bas_id691588866563757" localize="false">End Sub</paragraph>
|
|
</bascode>
|
|
|
|
<section id="relatedtopics">
|
|
<paragraph role="paragraph" id="par_id161588865796615"><link href="text/sbasic/shared/03102100.xhp">Dim</link> or <link href="text/sbasic/shared/03102101.xhp">ReDim</link> statements</paragraph>
|
|
<paragraph role="paragraph" id="par_id281588865818334"><link href="text/sbasic/shared/03104200.xhp">Array</link> or <link href="text/sbasic/shared/03104300.xhp">DimArray</link> functions</paragraph>
|
|
<paragraph role="paragraph" id="par_id761588867124078"><link href="text/sbasic/shared/03102900.xhp">Lbound</link> and <link href="text/sbasic/shared/03103000.xhp">Ubound</link> functions</paragraph>
|
|
</section>
|
|
|
|
</body>
|
|
</helpdocument> |