summaryrefslogtreecommitdiff
path: root/source/text
diff options
context:
space:
mode:
Diffstat (limited to 'source/text')
-rw-r--r--source/text/sbasic/shared/03020411.xhp73
-rw-r--r--source/text/sbasic/shared/03020413.xhp20
-rw-r--r--source/text/sbasic/shared/03090408.xhp21
-rw-r--r--source/text/sbasic/shared/03090411.xhp28
-rw-r--r--source/text/sbasic/shared/03130100.xhp21
5 files changed, 94 insertions, 69 deletions
diff --git a/source/text/sbasic/shared/03020411.xhp b/source/text/sbasic/shared/03020411.xhp
index a13781fa79..2051628f20 100644
--- a/source/text/sbasic/shared/03020411.xhp
+++ b/source/text/sbasic/shared/03020411.xhp
@@ -34,68 +34,71 @@
</bookmark>
-<paragraph id="hd_id3156421" role="heading" level="1" xml-lang="en-US"><link href="text/sbasic/shared/03020411.xhp" name="MkDir Statement">MkDir Statement</link></paragraph>
+<h1 id="hd_id3156421" xml-lang="en-US"><link href="text/sbasic/shared/03020411.xhp" name="MkDir Statement">MkDir Statement</link></h1>
+<paragraph role="paragraph" id="par_id971587473488701">
+ <image src="media/helpimg/sbasic/MkDir_statement.svg" id="img_id4156296484514"><alt xml-lang="en-US" id="alt_id15152796484514">MkDir Statement diagram</alt></image>
+</paragraph>
<paragraph id="par_id3147000" role="paragraph" xml-lang="en-US">Creates a new directory on a data medium.</paragraph>
</section>
-<paragraph id="hd_id3148520" role="heading" level="2" xml-lang="en-US">Syntax:</paragraph>
+<embed href="text/sbasic/shared/00000003.xhp#functsyntax"/>
<bascode>
-<paragraph id="par_id3155150" role="bascode" xml-lang="en-US">MkDir Text As String</paragraph>
+<paragraph id="par_id3155150" role="bascode" xml-lang="en-US">MkDir path</paragraph>
</bascode>
-<paragraph id="hd_id3156027" role="heading" level="2" xml-lang="en-US">Parameters:</paragraph>
-<paragraph id="par_id3153750" role="paragraph" xml-lang="en-US"> <emph>Text:</emph> Any string expression that specifies the name and path of the directory to be created. You can also use <link href="text/sbasic/shared/00000002.xhp" name="URL notation">URL notation</link>.</paragraph>
+<embed href="text/sbasic/shared/00000003.xhp#functparameters"/>
+<paragraph id="par_id3153750" role="paragraph" xml-lang="en-US"> <emph>path:</emph> Any string expression that specifies the name and path of the directory to be created. You can also use <link href="text/sbasic/shared/00000002.xhp" name="URL notation">URL notation</link>.</paragraph>
<paragraph id="par_id3153311" role="paragraph" xml-lang="en-US">If the path is not determined, the directory is created in the current directory.</paragraph>
<embed href="text/sbasic/shared/00000003.xhp#errorcode"/>
<embed href="text/sbasic/shared/00000003.xhp#err5"/>
<embed href="text/sbasic/shared/00000003.xhp#err76"/>
-<paragraph id="hd_id3155388" role="heading" level="2" xml-lang="en-US">Example:</paragraph>
+<embed href="text/sbasic/shared/00000003.xhp#functexample"/>
<bascode>
-<paragraph id="par_idm1341385136" role="bascode" localize="false" xml-lang="en-US">Sub ExampleFileIO</paragraph>
+<paragraph id="par_idm1341385136" role="bascode" localize="false">Sub ExampleFileIO</paragraph>
<paragraph id="par_id3149762" role="bascode" xml-lang="en-US">' Example for functions of the file organization</paragraph>
-<paragraph id="par_idm1341382112" role="bascode" localize="false" xml-lang="en-US">Const sFile1 As String = "file://c|/autoexec.bat"</paragraph>
-<paragraph id="par_idm1341380848" role="bascode" localize="false" xml-lang="en-US">Const sDir1 As String = "file://c|/Temp"</paragraph>
+<paragraph id="par_idm1341382112" role="bascode" localize="false">Const sFile1 As String = "file://c|/autoexec.bat"</paragraph>
+<paragraph id="par_idm1341380848" role="bascode" localize="false">Const sDir1 As String = "file://c|/Temp"</paragraph>
<paragraph id="par_id3149669" role="bascode" xml-lang="en-US">Const sSubDir1 As String ="Test"</paragraph>
<paragraph id="par_id3148663" role="bascode" xml-lang="en-US">Const sFile2 As String = "Copied.tmp"</paragraph>
<paragraph id="par_id3154071" role="bascode" xml-lang="en-US">Const sFile3 As String = "Renamed.tmp"</paragraph>
-<paragraph id="par_idm1341374400" role="bascode" localize="false" xml-lang="en-US">Dim sFile As String</paragraph>
-<paragraph id="par_idm1341373168" role="bascode" localize="false" xml-lang="en-US"> sFile = sDir1 + "/" + sSubDir1</paragraph>
-<paragraph id="par_idm1341371920" role="bascode" localize="false" xml-lang="en-US"> ChDir( sDir1 )</paragraph>
+<paragraph id="par_idm1341374400" role="bascode" localize="false">Dim sFile As String</paragraph>
+<paragraph id="par_idm1341373168" role="bascode" localize="false"> sFile = sDir1 + "/" + sSubDir1</paragraph>
+<paragraph id="par_idm1341371920" role="bascode" localize="false"> ChDir( sDir1 )</paragraph>
<paragraph id="par_id3154217" role="bascode" xml-lang="en-US"> If Dir(sSubDir1,16)="" Then ' Does the directory exist?</paragraph>
-<paragraph id="par_idm1341368880" role="bascode" localize="false" xml-lang="en-US"> MkDir sSubDir1</paragraph>
+<paragraph id="par_idm1341368880" role="bascode" localize="false"> MkDir sSubDir1</paragraph>
<paragraph id="par_id3147228" role="bascode" xml-lang="en-US"> MsgBox sFile,0,"Create directory"</paragraph>
-<paragraph id="par_idm1341365904" role="bascode" localize="false" xml-lang="en-US"> End If</paragraph>
-<paragraph id="par_idm1341364672" role="bascode" localize="false" xml-lang="en-US"> sFile = sFile + "/" + sFile2</paragraph>
-<paragraph id="par_idm1341363424" role="bascode" localize="false" xml-lang="en-US"> FileCopy sFile1 , sFile</paragraph>
+<paragraph id="par_idm1341365904" role="bascode" localize="false"> End If</paragraph>
+<paragraph id="par_idm1341364672" role="bascode" localize="false"> sFile = sFile + "/" + sFile2</paragraph>
+<paragraph id="par_idm1341363424" role="bascode" localize="false"> FileCopy sFile1 , sFile</paragraph>
<paragraph id="par_id3153770" role="bascode" xml-lang="en-US"> MsgBox fSysURL(CurDir()),0,"Current directory"</paragraph>
<paragraph id="par_id3159154" role="bascode" xml-lang="en-US"> MsgBox sFile &amp; Chr(13) &amp; FileDateTime( sFile ),0,"Creation time"</paragraph>
<paragraph id="par_id3149484" role="bascode" xml-lang="en-US"> MsgBox sFile &amp; Chr(13)&amp; FileLen( sFile ),0,"File length"</paragraph>
<paragraph id="par_id3152885" role="bascode" xml-lang="en-US"> MsgBox sFile &amp; Chr(13)&amp; GetAttr( sFile ),0,"File attributes"</paragraph>
-<paragraph id="par_idm1341354896" role="bascode" localize="false" xml-lang="en-US"> Name sFile As sDir1 + "/" + sSubDir1 + "/" + sFile3</paragraph>
+<paragraph id="par_idm1341354896" role="bascode" localize="false"> Name sFile As sDir1 + "/" + sSubDir1 + "/" + sFile3</paragraph>
<paragraph id="par_id3153952" role="bascode" xml-lang="en-US"> ' Rename in the same directory</paragraph>
-<paragraph id="par_idm1341351856" role="bascode" localize="false" xml-lang="en-US"> sFile = sDir1 + "/" + sSubDir1 + "/" + sFile3</paragraph>
+<paragraph id="par_idm1341351856" role="bascode" localize="false"> sFile = sDir1 + "/" + sSubDir1 + "/" + sFile3</paragraph>
<paragraph id="par_id3147426" role="bascode" xml-lang="en-US"> SetAttr( sFile, 0 ) 'Delete all attributes</paragraph>
<paragraph id="par_id3148647" role="bascode" xml-lang="en-US"> MsgBox sFile &amp; Chr(13) &amp; GetAttr( sFile ),0,"New file attributes"</paragraph>
-<paragraph id="par_idm1341346992" role="bascode" localize="false" xml-lang="en-US"> Kill sFile</paragraph>
-<paragraph id="par_idm1341345760" role="bascode" localize="false" xml-lang="en-US"> RmDir sDir1 + "/" + sSubDir1</paragraph>
-<paragraph id="par_idm1341344512" role="bascode" localize="false" xml-lang="en-US">End Sub</paragraph>
-<paragraph id="par_id3153157" role="bascode" localize="false" xml-lang="en-US"> </paragraph>
+<paragraph id="par_idm1341346992" role="bascode" localize="false"> Kill sFile</paragraph>
+<paragraph id="par_idm1341345760" role="bascode" localize="false"> RmDir sDir1 + "/" + sSubDir1</paragraph>
+<paragraph id="par_idm1341344512" role="bascode" localize="false">End Sub</paragraph>
+<paragraph id="par_id3153157" role="bascode" localize="false"> </paragraph>
<paragraph id="par_id3150092" role="bascode" xml-lang="en-US">' Converts a system path in URL</paragraph>
-<paragraph id="par_idm1341100304" role="bascode" localize="false" xml-lang="en-US">Function fSysURL( fSysFp As String ) As String</paragraph>
-<paragraph id="par_idm1341099040" role="bascode" localize="false" xml-lang="en-US">Dim iPos As String</paragraph>
-<paragraph id="par_idm1341097808" role="bascode" localize="false" xml-lang="en-US"> iPos = 1</paragraph>
-<paragraph id="par_idm1341096576" role="bascode" localize="false" xml-lang="en-US"> iPos = Instr(iPos,fSysFp, getPathSeparator())</paragraph>
-<paragraph id="par_idm1341095312" role="bascode" localize="false" xml-lang="en-US"> Do While iPos &gt; 0</paragraph>
-<paragraph id="par_idm1341093984" role="bascode" localize="false" xml-lang="en-US"> Mid( fSysFp, iPos , 1,"/")</paragraph>
-<paragraph id="par_idm1341092768" role="bascode" localize="false" xml-lang="en-US"> iPos = Instr(iPos+1,fSysFp, getPathSeparator())</paragraph>
-<paragraph id="par_idm1341091504" role="bascode" localize="false" xml-lang="en-US"> Loop</paragraph>
+<paragraph id="par_idm1341100304" role="bascode" localize="false">Function fSysURL( fSysFp As String ) As String</paragraph>
+<paragraph id="par_idm1341099040" role="bascode" localize="false">Dim iPos As String</paragraph>
+<paragraph id="par_idm1341097808" role="bascode" localize="false"> iPos = 1</paragraph>
+<paragraph id="par_idm1341096576" role="bascode" localize="false"> iPos = Instr(iPos,fSysFp, getPathSeparator())</paragraph>
+<paragraph id="par_idm1341095312" role="bascode" localize="false"> Do While iPos &gt; 0</paragraph>
+<paragraph id="par_idm1341093984" role="bascode" localize="false"> Mid( fSysFp, iPos , 1,"/")</paragraph>
+<paragraph id="par_idm1341092768" role="bascode" localize="false"> iPos = Instr(iPos+1,fSysFp, getPathSeparator())</paragraph>
+<paragraph id="par_idm1341091504" role="bascode" localize="false"> Loop</paragraph>
<paragraph id="par_id3156276" role="bascode" xml-lang="en-US"> ' the colon with DOS</paragraph>
-<paragraph id="par_idm1341088544" role="bascode" localize="false" xml-lang="en-US"> iPos = Instr(1,fSysFp,":")</paragraph>
-<paragraph id="par_idm1341087296" role="bascode" localize="false" xml-lang="en-US"> If iPos &gt; 0 Then Mid( fSysFp, iPos , 1,"|")</paragraph>
-<paragraph id="par_idm1341085952" role="bascode" localize="false" xml-lang="en-US"> fSysURL = "file://" &amp; fSysFp</paragraph>
-<paragraph id="par_idm1341084688" role="bascode" localize="false" xml-lang="en-US">End Function</paragraph>
+<paragraph id="par_idm1341088544" role="bascode" localize="false"> iPos = Instr(1,fSysFp,":")</paragraph>
+<paragraph id="par_idm1341087296" role="bascode" localize="false"> If iPos &gt; 0 Then Mid( fSysFp, iPos , 1,"|")</paragraph>
+<paragraph id="par_idm1341085952" role="bascode" localize="false"> fSysURL = "file://" &amp; fSysFp</paragraph>
+<paragraph id="par_idm1341084688" role="bascode" localize="false">End Function</paragraph>
</bascode>
-</body>
+</body>
</helpdocument>
diff --git a/source/text/sbasic/shared/03020413.xhp b/source/text/sbasic/shared/03020413.xhp
index 6ad7aed81a..7d38f2cc3e 100644
--- a/source/text/sbasic/shared/03020413.xhp
+++ b/source/text/sbasic/shared/03020413.xhp
@@ -27,30 +27,31 @@
<body>
-
<section id="rmdir">
<bookmark xml-lang="en-US" branch="index" id="bm_id3148947">
<bookmark_value>RmDir statement</bookmark_value>
</bookmark>
-
-<paragraph id="hd_id3148947" role="heading" level="1" xml-lang="en-US"><link href="text/sbasic/shared/03020413.xhp" name="RmDir Statement">RmDir Statement</link></paragraph>
+<h1 id="hd_id3148947" xml-lang="en-US"><link href="text/sbasic/shared/03020413.xhp" name="RmDir Statement">RmDir Statement</link></h1>
<paragraph id="par_id3149457" role="paragraph" xml-lang="en-US">Deletes an existing directory from a data medium.</paragraph>
</section>
-<paragraph id="hd_id3153361" role="heading" level="2" xml-lang="en-US">Syntax:</paragraph>
+<embed href="text/sbasic/shared/00000003.xhp#functsyntax"/>
+<paragraph role="paragraph" id="par_id971587473488701">
+ <image src="media/helpimg/sbasic/RmDir_statement.svg" id="img_id4156296484514"><alt xml-lang="en-US" id="alt_id15152796484514">RmDir Statement diagram</alt></image>
+</paragraph>
<bascode>
<paragraph id="par_id3154367" role="bascode" xml-lang="en-US">RmDir Text As String</paragraph>
</bascode>
-<paragraph id="hd_id3156281" role="heading" level="2" xml-lang="en-US">Parameters:</paragraph>
+<embed href="text/sbasic/shared/00000003.xhp#functparameters"/>
<paragraph id="par_id3151042" role="paragraph" xml-lang="en-US"> <emph>Text:</emph> Any string expression that specifies the name and path of the directory that you want to delete. You can also use <link href="text/sbasic/shared/00000002.xhp" name="URL notation">URL notation</link>.</paragraph>
<paragraph id="par_id3153192" role="paragraph" xml-lang="en-US">If the path is not determined, the <emph>RmDir Statement</emph> searches for the directory that you want to delete in the current path. If it is not found there, an error message appears.</paragraph>
<embed href="text/sbasic/shared/00000003.xhp#errorcode"/>
<embed href="text/sbasic/shared/00000003.xhp#err5"/>
<embed href="text/sbasic/shared/00000003.xhp#err76"/>
-<paragraph id="hd_id3145271" role="heading" level="2" xml-lang="en-US">Example:</paragraph>
+<embed href="text/sbasic/shared/00000003.xhp#functexample"/>
<bascode>
<paragraph id="par_idm1341576272" role="bascode" localize="false" xml-lang="en-US">Sub ExampleRmDir</paragraph>
<paragraph id="par_idm1341575040" role="bascode" localize="false" xml-lang="en-US"> MkDir "C:\Test2"</paragraph>
@@ -60,6 +61,11 @@
<paragraph id="par_idm1341570112" role="bascode" localize="false" xml-lang="en-US"> RmDir "C:\test2"</paragraph>
<paragraph id="par_idm1341568880" role="bascode" localize="false" xml-lang="en-US">End Sub</paragraph>
</bascode>
-</body>
+
+<section id="relatedtopics">
+ <embed href="text/sbasic/shared/compatible.xhp#compatiblestatement"/>
+ <embed href="text/sbasic/shared/compatibilitymode.xhp#compatibilitymodeh1"/>
+</section>
+</body>
</helpdocument> \ No newline at end of file
diff --git a/source/text/sbasic/shared/03090408.xhp b/source/text/sbasic/shared/03090408.xhp
index d78fa9df04..8aefe030f5 100644
--- a/source/text/sbasic/shared/03090408.xhp
+++ b/source/text/sbasic/shared/03090408.xhp
@@ -32,23 +32,26 @@
<bookmark_value>Stop statement</bookmark_value>
</bookmark>
-<paragraph id="hd_id3153311" role="heading" level="1" xml-lang="en-US"><link href="text/sbasic/shared/03090408.xhp" name="Stop Statement">Stop Statement</link></paragraph>
+<h1 id="hd_id3153311" xml-lang="en-US"><link href="text/sbasic/shared/03090408.xhp" name="Stop Statement">Stop Statement</link></h1>
<paragraph id="par_id3154142" role="paragraph" xml-lang="en-US">Stops the execution of the Basic program.</paragraph>
</section>
-<paragraph id="hd_id3153126" role="heading" level="2" xml-lang="en-US">Syntax:</paragraph>
+<embed href="text/sbasic/shared/00000003.xhp#functsyntax"/>
+<paragraph role="paragraph" id="par_id971587473488701">
+ <image src="media/helpimg/sbasic/Stop_statement.svg" id="img_id4156296484514"><alt xml-lang="en-US" id="alt_id15152796484514">Stop Statement diagram</alt></image>
+</paragraph>
<bascode>
<paragraph id="par_id3156023" role="bascode" localize="false" xml-lang="en-US">Stop</paragraph>
</bascode>
-<paragraph id="hd_id3156344" role="heading" level="2" xml-lang="en-US">Example:</paragraph>
+<embed href="text/sbasic/shared/00000003.xhp#functexample"/>
<bascode>
-<paragraph id="par_idm1341620128" role="bascode" localize="false" xml-lang="en-US">Sub ExampleStop</paragraph>
-<paragraph id="par_idm1341618896" role="bascode" localize="false" xml-lang="en-US">Dim iVar As Single</paragraph>
-<paragraph id="par_idm1341617664" role="bascode" localize="false" xml-lang="en-US"> iVar = 36</paragraph>
-<paragraph id="par_idm1341616432" role="bascode" localize="false" xml-lang="en-US"> Stop</paragraph>
-<paragraph id="par_idm1341615200" role="bascode" localize="false" xml-lang="en-US"> MsgBox Sqr(iVar)</paragraph>
-<paragraph id="par_idm1341613968" role="bascode" localize="false" xml-lang="en-US">End Sub</paragraph>
+<paragraph id="par_idm1341620128" role="bascode" localize="false">Sub ExampleStop</paragraph>
+<paragraph id="par_idm1341618896" role="bascode" localize="false">Dim iVar As Single</paragraph>
+<paragraph id="par_idm1341617664" role="bascode" localize="false"> iVar = 36</paragraph>
+<paragraph id="par_idm1341616432" role="bascode" localize="false"> Stop</paragraph>
+<paragraph id="par_idm1341615200" role="bascode" localize="false"> MsgBox Sqr(iVar)</paragraph>
+<paragraph id="par_idm1341613968" role="bascode" localize="false">End Sub</paragraph>
</bascode>
</body>
diff --git a/source/text/sbasic/shared/03090411.xhp b/source/text/sbasic/shared/03090411.xhp
index 5d4c415965..cc789d4ced 100644
--- a/source/text/sbasic/shared/03090411.xhp
+++ b/source/text/sbasic/shared/03090411.xhp
@@ -29,20 +29,28 @@
</history>
</meta>
<body>
+
<section id="with">
<bookmark xml-lang="en-US" branch="index" id="bm_id3153311"><bookmark_value>With statement</bookmark_value>
</bookmark>
-<paragraph role="heading" id="hd_id3153311" xml-lang="en-US" level="1"><link href="text/sbasic/shared/03090411.xhp" name="With Statement">With Statement</link></paragraph>
-<paragraph role="paragraph" id="par_id3159158" xml-lang="en-US">Sets an object as the default object. Unless another object name is declared, all properties and methods refer to the default object until the End With statement is reached.</paragraph>
+<h1 id="hd_id3153311" xml-lang="en-US"><link href="text/sbasic/shared/03090411.xhp" name="With Statement">With Statement</link></h1>
+ <paragraph role="paragraph" id="par_id3159158" xml-lang="en-US">Sets an object as the default object. Unless another object name is declared, all properties and methods refer to the default object until the <literal>End With</literal> statement is reached.</paragraph>
</section>
-<paragraph role="heading" id="hd_id3156153" xml-lang="en-US" level="2">Syntax:</paragraph>
+
+<embed href="text/sbasic/shared/00000003.xhp#functsyntax"/>
+<paragraph role="paragraph" id="par_id491585753339474"><image src="media/helpimg/sbasic/With_statement.svg" id="img_id4156296484514"><alt xml-lang="en-US" id="alt_id15152796484514">With statement diagram</alt></image></paragraph>
<bascode>
- <paragraph role="bascode" id="par_id3145609" xml-lang="en-US" localize="false">With Object</paragraph>
- <paragraph role="bascode" id="par_id951512205849777" xml-lang="en-US" localize="false"> Statement block</paragraph>
- <paragraph role="bascode" id="par_id841512205903256" xml-lang="en-US" localize="false">End With</paragraph>
+ <paragraph role="bascode" id="par_id3145609" localize="false">With object</paragraph>
+ <paragraph role="bascode" id="par_id951512205849777" localize="false"> [statements]</paragraph>
+ <paragraph role="bascode" id="par_id841512205903256" localize="false">End With</paragraph>
</bascode>
-<paragraph role="heading" id="hd_id3154924" xml-lang="en-US" level="2">Parameters:</paragraph>
-<paragraph role="paragraph" id="par_id3147560" xml-lang="en-US">Use <emph>With</emph> and <emph>End With</emph> if you have several properties or methods for a single object.</paragraph>
-</body>
-</helpdocument>
+<embed href="text/sbasic/shared/00000003.xhp#functparameters"/>
+<paragraph role="paragraph" id="par_id3147560" xml-lang="en-US">Use <literal>With</literal> and <literal>End With</literal> if you have several properties or methods for a single object or an extended data type definition.</paragraph>
+<tip id="par_id311606839557245">Nesting <literal>With</literal> statements helps writing and reading Basic routines.</tip>
+<section id="relatedtopics">
+ <paragraph role="paragraph" id="par_id921606840180540"><link href="text/sbasic/shared/03090413.xhp" name="Type Statement">Type Statement</link></paragraph><paragraph role="paragraph" id="par_id51606840182524"></paragraph>
+</section>
+
+</body>
+</helpdocument> \ No newline at end of file
diff --git a/source/text/sbasic/shared/03130100.xhp b/source/text/sbasic/shared/03130100.xhp
index 5db50f3a18..f8e90b2dd1 100644
--- a/source/text/sbasic/shared/03130100.xhp
+++ b/source/text/sbasic/shared/03130100.xhp
@@ -32,22 +32,27 @@
<section id="beep">
<bookmark xml-lang="en-US" branch="index" id="bm_id3143284"><bookmark_value>Beep statement</bookmark_value>
</bookmark>
-<paragraph role="heading" id="hd_id3143284" xml-lang="en-US" level="1"><link href="text/sbasic/shared/03130100.xhp" name="Beep Statement">Beep Statement</link></paragraph>
+<h1 id="hd_id3143284" xml-lang="en-US"><link href="text/sbasic/shared/03130100.xhp" name="Beep Statement">Beep Statement</link></h1>
<paragraph role="paragraph" id="par_id3159201" xml-lang="en-US">Plays a tone through the computer's speaker. The tone is system-dependent and you cannot modify its volume or pitch.</paragraph>
</section>
-<paragraph role="heading" id="hd_id3153990" xml-lang="en-US" level="2">Syntax:</paragraph>
+
+<embed href="text/sbasic/shared/00000003.xhp#functsyntax"/>
+<paragraph role="paragraph" id="par_id971587473488701">
+ <image src="media/helpimg/sbasic/Beep_statement.svg" id="img_id4156296484514"><alt xml-lang="en-US" id="alt_id15152796484514">Beep Statement diagram</alt></image>
+</paragraph>
<bascode>
<paragraph role="bascode" localize="false" id="par_id3147291" xml-lang="en-US">Beep</paragraph>
</bascode>
<embed href="text/sbasic/shared/00000003.xhp#errorcode"/>
<embed href="text/sbasic/shared/00000003.xhp#err5"/>
-<paragraph role="heading" id="hd_id3148538" xml-lang="en-US" level="2">Example:</paragraph>
+
+<embed href="text/sbasic/shared/00000003.xhp#functexample"/>
<bascode>
-<paragraph role="bascode" id="par_id3149762" xml-lang="en-US" localize="false">Sub ExampleBeep</paragraph>
-<paragraph role="bascode" id="par_id3154285" xml-lang="en-US" localize="false"> Beep</paragraph>
-<paragraph role="bascode" id="par_id3143270" xml-lang="en-US" localize="false"> Beep</paragraph>
-<paragraph role="bascode" id="par_id3154142" xml-lang="en-US" localize="false"> Beep</paragraph>
-<paragraph role="bascode" id="par_id3148943" xml-lang="en-US" localize="false">End Sub</paragraph>
+<paragraph role="bascode" id="par_id3149762" localize="false">Sub ExampleBeep</paragraph>
+<paragraph role="bascode" id="par_id3154285" localize="false"> Beep</paragraph>
+<paragraph role="bascode" id="par_id3143270" localize="false"> Beep</paragraph>
+<paragraph role="bascode" id="par_id3154142" localize="false"> Beep</paragraph>
+<paragraph role="bascode" id="par_id3148943" localize="false">End Sub</paragraph>
</bascode>
</body>
</helpdocument>