diff options
author | LibreOļ¬ciant <LibreOfficiant@sfr.fr> | 2020-05-06 15:39:31 +0200 |
---|---|---|
committer | Olivier Hallot <olivier.hallot@libreoffice.org> | 2020-05-11 02:00:00 +0200 |
commit | 099f7cea6b2677d9531c9d87ffc62b84c906b7f0 (patch) | |
tree | 0e79dd2aed51a213aa7bcd72513e3e15f1b13375 /source/text | |
parent | Update screenshots OptSavePage (diff) | |
download | help-099f7cea6b2677d9531c9d87ffc62b84c906b7f0.tar.gz help-099f7cea6b2677d9531c9d87ffc62b84c906b7f0.zip |
tdf#131416 Syntax diagrams
- Erase: syntax + new examples + x-refs
- Managing flow of control: Do, If, While diagrams
- Basic Syntax Diagrams (WiP) cheatsheet:
https://wiki.documentfoundation.org/User:LibreOfficiant/BasicSyntax
Change-Id: I68e03ccf8169d59e56f9a2e5b10b4bf09d8b217b
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/93529
Tested-by: Jenkins
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
Diffstat (limited to 'source/text')
-rw-r--r-- | source/text/sbasic/shared/03104700.xhp | 49 |
1 files changed, 33 insertions, 16 deletions
diff --git a/source/text/sbasic/shared/03104700.xhp b/source/text/sbasic/shared/03104700.xhp index 88bdd43360..968cac3139 100644 --- a/source/text/sbasic/shared/03104700.xhp +++ b/source/text/sbasic/shared/03104700.xhp @@ -20,28 +20,45 @@ <helpdocument version="1.0"> <meta> -<topic id="textsbasicshared03104700xhp" indexer="include" status="PUBLISH"> -<title id="tit" xml-lang="en-US">Erase Function</title> -<filename>/text/sbasic/shared/03104700.xhp</filename> -</topic> -<history> -<created date="2005-04-25T14:43:31">Erase</created> -</history> + <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 function</bookmark_value> +<bookmark xml-lang="en-US" branch="index" id="bm_id624713"><bookmark_value>Erase statement</bookmark_value> </bookmark> -<paragraph role="heading" id="par_idN10548" xml-lang="en-US" level="1"><link href="text/sbasic/shared/03104700.xhp">Erase Function</link></paragraph> +<paragraph role="heading" id="par_idN10548" xml-lang="en-US" level="1"><link href="text/sbasic/shared/03104700.xhp">Erase Statement</link></paragraph> <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> -<paragraph role="heading" id="par_idN1055D" xml-lang="en-US" level="2">Syntax:</paragraph> + +<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 Arraylist</paragraph> + <paragraph role="bascode" id="par_idN105E6" xml-lang="en-US">Erase array1 [, array2 [,...]]</paragraph> </bascode> -<paragraph role="heading" id="par_idN105E9" xml-lang="en-US" level="2">Parameters:</paragraph> -<paragraph role="paragraph" id="par_idN105ED" xml-lang="en-US"> -<emph>Arraylist</emph> - The list of arrays to be erased.</paragraph> -</body> -</helpdocument> +<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" name="Dim statement">Dim</link> or <link href="text/sbasic/shared/03102101.xhp" name="ReDim statement">ReDim</link> statements</paragraph> + <paragraph role="paragraph" id="par_id281588865818334"><link href="text/sbasic/shared/03104200.xhp" name="Array function">Array</link> or <link href="text/sbasic/shared/03104300.xhp" name="DimArray function">DimArray</link> functions</paragraph> + <paragraph role="paragraph" id="par_id761588867124078"><link href="text/sbasic/shared/03102900.xhp" name="lower bound function">Lbound</link> and <link href="text/sbasic/shared/03103000.xhp" name="upper bound function">Ubound</link> functions</paragraph> +</section> + +</body> +</helpdocument>
\ No newline at end of file |