diff options
author | Alain Romedenne <LibreOfficiant@sfr.fr> | 2020-12-01 14:39:32 +0100 |
---|---|---|
committer | Adolfo Jayme Barrientos <fitojb@ubuntu.com> | 2020-12-03 06:09:02 +0100 |
commit | e017c71c1ca6e86fd65bab2af300fe149fcc01ab (patch) | |
tree | e1e34d0116810104e4c26e47f5d0a4ef9d8b6723 | |
parent | fdcc3f43b6cca1494f32c2dd10f03b05c2d8ebd6 (diff) |
tdf#131416 Basic Syntax Diagrams - the end
+ Beep
+ MkDir
+ RmDir
+ Stop
+ With
Note: Basic functions are not provided with a syntax 'diagram' as their syntax is conventional.
Change-Id: I36e37947f8982dd0f27241e6a76edc84572bc636
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/106947
Tested-by: Jenkins
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
(cherry picked from commit 37d03e7d61caa560373268675ad87d91242bce05)
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/107102
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
-rw-r--r-- | Package_html_media.mk | 5 | ||||
-rw-r--r-- | source/media/helpimg/sbasic/Beep_statement.svg | 32 | ||||
-rw-r--r-- | source/media/helpimg/sbasic/MkDir_statement.svg | 33 | ||||
-rw-r--r-- | source/media/helpimg/sbasic/RmDir_statement.svg | 33 | ||||
-rw-r--r-- | source/media/helpimg/sbasic/Stop_statement.svg | 32 | ||||
-rw-r--r-- | source/media/helpimg/sbasic/With_statement.svg | 35 | ||||
-rw-r--r-- | source/text/sbasic/shared/03020411.xhp | 73 | ||||
-rw-r--r-- | source/text/sbasic/shared/03020413.xhp | 20 | ||||
-rw-r--r-- | source/text/sbasic/shared/03090408.xhp | 21 | ||||
-rw-r--r-- | source/text/sbasic/shared/03090411.xhp | 28 | ||||
-rw-r--r-- | source/text/sbasic/shared/03130100.xhp | 21 |
11 files changed, 264 insertions, 69 deletions
diff --git a/Package_html_media.mk b/Package_html_media.mk index 0d36c67731..2fb33193bc 100644 --- a/Package_html_media.mk +++ b/Package_html_media.mk @@ -114,6 +114,7 @@ $(eval $(call gb_Package_add_files_with_dir,helpcontent2_html_media,$(LIBO_SHARE helpimg/sbasic/char_fragment.svg \ helpimg/sbasic/comment_fragment.svg \ helpimg/sbasic/typename_fragment.svg \ + helpimg/sbasic/Beep_statement.svg \ helpimg/sbasic/Call_statement.svg \ helpimg/sbasic/Close_statement.svg \ helpimg/sbasic/Const_statement.svg \ @@ -134,6 +135,7 @@ $(eval $(call gb_Package_add_files_with_dir,helpcontent2_html_media,$(LIBO_SHARE helpimg/sbasic/Input_statement.svg \ helpimg/sbasic/LetSet_statement.svg \ helpimg/sbasic/Line-Input_statement.svg \ + helpimg/sbasic/MkDir_statement.svg \ helpimg/sbasic/On-Error_statement.svg \ helpimg/sbasic/On-GoSub-GoTo_statement.svg \ helpimg/sbasic/Option_statement.svg \ @@ -146,11 +148,14 @@ $(eval $(call gb_Package_add_files_with_dir,helpcontent2_html_media,$(LIBO_SHARE helpimg/sbasic/ReDim_statement.svg \ helpimg/sbasic/Resume_statement.svg \ helpimg/sbasic/Reset_statement.svg \ + helpimg/sbasic/RmDir_statement.svg \ helpimg/sbasic/Seek_statement.svg \ helpimg/sbasic/Select-Case_statement.svg \ + helpimg/sbasic/Stop_statement.svg \ helpimg/sbasic/Sub_statement.svg \ helpimg/sbasic/Type_statement.svg \ helpimg/sbasic/While_statement.svg \ + helpimg/sbasic/With_statement.svg \ helpimg/sbasic/Write_statement.svg \ helpimg/scalc/coordinates-to-polar-01.svg \ helpimg/sdraw/control_points.png \ diff --git a/source/media/helpimg/sbasic/Beep_statement.svg b/source/media/helpimg/sbasic/Beep_statement.svg new file mode 100644 index 0000000000..61606af11a --- /dev/null +++ b/source/media/helpimg/sbasic/Beep_statement.svg @@ -0,0 +1,32 @@ +<svg class="railroad-diagram" height="62" viewBox="0 0 154.0 62" width="154.0" xmlns="http://www.w3.org/2000/svg"> +<g transform="translate(.5 .5)"> +<style>/* <![CDATA[ */ + svg.railroad-diagram { + background-color:transparent; + } + svg.railroad-diagram path { + stroke-width:1; + stroke:black; + fill:rgba(0,0,0,0); + } + svg.railroad-diagram text { + font:bold 14px monospace; + font-family: Verdana, sans-serif; + text-anchor:middle; + } + svg.railroad-diagram text.label{ + text-anchor:start; + } + svg.railroad-diagram text.comment{ + font:italic 12px monospace; + } + svg.railroad-diagram rect{ + stroke-width:1; + stroke:black; + fill:transparent; + } + +/* ]]> */ +</style><g> +<path d="M20 21v20m10 -20v20m-10 -10h20"></path></g><path d="M40 31h10"></path><g class="terminal"> +<path d="M50 31h0.0"></path><path d="M104.0 31h0.0"></path><rect height="22" rx="10" ry="10" width="54.0" x="50.0" y="20"></rect><text x="77.0" y="35">Beep</text></g><path d="M104.0 31h10"></path><path d="M 114.0 31 h 20 m -10 -10 v 20 m 10 -20 v 20"></path></g></svg>
\ No newline at end of file diff --git a/source/media/helpimg/sbasic/MkDir_statement.svg b/source/media/helpimg/sbasic/MkDir_statement.svg new file mode 100644 index 0000000000..bfd00fb105 --- /dev/null +++ b/source/media/helpimg/sbasic/MkDir_statement.svg @@ -0,0 +1,33 @@ +<svg class="railroad-diagram" height="62" viewBox="0 0 236.5 62" width="236.5" xmlns="http://www.w3.org/2000/svg"> +<g transform="translate(.5 .5)"> +<style>/* <![CDATA[ */ + svg.railroad-diagram { + background-color:transparent; + } + svg.railroad-diagram path { + stroke-width:1; + stroke:black; + fill:rgba(0,0,0,0); + } + svg.railroad-diagram text { + font:bold 14px monospace; + font-family: Verdana, sans-serif; + text-anchor:middle; + } + svg.railroad-diagram text.label{ + text-anchor:start; + } + svg.railroad-diagram text.comment{ + font:italic 12px monospace; + } + svg.railroad-diagram rect{ + stroke-width:1; + stroke:black; + fill:transparent; + } + +/* ]]> */ +</style><g> +<path d="M20 21v20m10 -20v20m-10 -10h20"></path></g><path d="M40 31h10"></path><g class="terminal"> +<path d="M50 31h0.0"></path><path d="M112.5 31h0.0"></path><rect height="22" rx="10" ry="10" width="62.5" x="50.0" y="20"></rect><text x="81.25" y="35">MkDir</text></g><path d="M112.5 31h10"></path><path d="M122.5 31h10"></path><g class="terminal"> +<path d="M132.5 31h0.0"></path><path d="M186.5 31h0.0"></path><rect height="22" rx="10" ry="10" width="54.0" x="132.5" y="20"></rect><text x="159.5" y="35">path</text></g><path d="M186.5 31h10"></path><path d="M 196.5 31 h 20 m -10 -10 v 20 m 10 -20 v 20"></path></g></svg>
\ No newline at end of file diff --git a/source/media/helpimg/sbasic/RmDir_statement.svg b/source/media/helpimg/sbasic/RmDir_statement.svg new file mode 100644 index 0000000000..b9dc9bb4bb --- /dev/null +++ b/source/media/helpimg/sbasic/RmDir_statement.svg @@ -0,0 +1,33 @@ +<svg class="railroad-diagram" height="62" viewBox="0 0 236.5 62" width="236.5" xmlns="http://www.w3.org/2000/svg"> +<g transform="translate(.5 .5)"> +<style>/* <![CDATA[ */ + svg.railroad-diagram { + background-color:transparent; + } + svg.railroad-diagram path { + stroke-width:1; + stroke:black; + fill:rgba(0,0,0,0); + } + svg.railroad-diagram text { + font:bold 14px monospace; + font-family: Verdana, sans-serif; + text-anchor:middle; + } + svg.railroad-diagram text.label{ + text-anchor:start; + } + svg.railroad-diagram text.comment{ + font:italic 12px monospace; + } + svg.railroad-diagram rect{ + stroke-width:1; + stroke:black; + fill:transparent; + } + +/* ]]> */ +</style><g> +<path d="M20 21v20m10 -20v20m-10 -10h20"></path></g><path d="M40 31h10"></path><g class="terminal"> +<path d="M50 31h0.0"></path><path d="M112.5 31h0.0"></path><rect height="22" rx="10" ry="10" width="62.5" x="50.0" y="20"></rect><text x="81.25" y="35">RmDir</text></g><path d="M112.5 31h10"></path><path d="M122.5 31h10"></path><g class="terminal"> +<path d="M132.5 31h0.0"></path><path d="M186.5 31h0.0"></path><rect height="22" rx="10" ry="10" width="54.0" x="132.5" y="20"></rect><text x="159.5" y="35">path</text></g><path d="M186.5 31h10"></path><path d="M 196.5 31 h 20 m -10 -10 v 20 m 10 -20 v 20"></path></g></svg>
\ No newline at end of file diff --git a/source/media/helpimg/sbasic/Stop_statement.svg b/source/media/helpimg/sbasic/Stop_statement.svg new file mode 100644 index 0000000000..fdf28325dd --- /dev/null +++ b/source/media/helpimg/sbasic/Stop_statement.svg @@ -0,0 +1,32 @@ +<svg class="railroad-diagram" height="62" viewBox="0 0 154.0 62" width="154.0" xmlns="http://www.w3.org/2000/svg"> +<g transform="translate(.5 .5)"> +<style>/* <![CDATA[ */ + svg.railroad-diagram { + background-color:transparent; + } + svg.railroad-diagram path { + stroke-width:1; + stroke:black; + fill:rgba(0,0,0,0); + } + svg.railroad-diagram text { + font:bold 14px monospace; + font-family: Verdana, sans-serif; + text-anchor:middle; + } + svg.railroad-diagram text.label{ + text-anchor:start; + } + svg.railroad-diagram text.comment{ + font:italic 12px monospace; + } + svg.railroad-diagram rect{ + stroke-width:1; + stroke:black; + fill:transparent; + } + +/* ]]> */ +</style><g> +<path d="M20 21v20m10 -20v20m-10 -10h20"></path></g><path d="M40 31h10"></path><g class="terminal"> +<path d="M50 31h0.0"></path><path d="M104.0 31h0.0"></path><rect height="22" rx="10" ry="10" width="54.0" x="50.0" y="20"></rect><text x="77.0" y="35">Stop</text></g><path d="M104.0 31h10"></path><path d="M 114.0 31 h 20 m -10 -10 v 20 m 10 -20 v 20"></path></g></svg>
\ No newline at end of file diff --git a/source/media/helpimg/sbasic/With_statement.svg b/source/media/helpimg/sbasic/With_statement.svg new file mode 100644 index 0000000000..9c0fabc88c --- /dev/null +++ b/source/media/helpimg/sbasic/With_statement.svg @@ -0,0 +1,35 @@ +<svg class="railroad-diagram" height="62" viewBox="0 0 478.0 62" width="478.0" xmlns="http://www.w3.org/2000/svg"> +<g transform="translate(.5 .5)"> +<style>/* <![CDATA[ */ + svg.railroad-diagram { + background-color:transparent; + } + svg.railroad-diagram path { + stroke-width:1; + stroke:black; + fill:rgba(0,0,0,0); + } + svg.railroad-diagram text { + font:bold 14px monospace; + font-family: Verdana, sans-serif; + text-anchor:middle; + } + svg.railroad-diagram text.label{ + text-anchor:start; + } + svg.railroad-diagram text.comment{ + font:italic 12px monospace; + } + svg.railroad-diagram rect{ + stroke-width:1; + stroke:black; + fill:transparent; + } + +/* ]]> */ +</style><g> +<path d="M20 21v20m10 -20v20m-10 -10h20"></path></g><path d="M40 31h10"></path><g class="terminal"> +<path d="M50 31h0.0"></path><path d="M104.0 31h0.0"></path><rect height="22" rx="10" ry="10" width="54.0" x="50.0" y="20"></rect><text x="77.0" y="35">With</text></g><path d="M104.0 31h10"></path><path d="M114.0 31h10"></path><g class="terminal"> +<path d="M124.0 31h0.0"></path><path d="M195.0 31h0.0"></path><rect height="22" rx="10" ry="10" width="71.0" x="124.0" y="20"></rect><text x="159.5" y="35">object</text></g><path d="M195.0 31h10"></path><path d="M205.0 31h10"></path><g class="terminal"> +<path d="M215.0 31h0.0"></path><path d="M320.0 31h0.0"></path><rect height="22" rx="10" ry="10" width="105.0" x="215.0" y="20"></rect><text x="267.5" y="35">statements</text></g><path d="M320.0 31h10"></path><path d="M330.0 31h10"></path><g class="terminal"> +<path d="M340.0 31h0.0"></path><path d="M428.0 31h0.0"></path><rect height="22" rx="10" ry="10" width="88.0" x="340.0" y="20"></rect><text x="384.0" y="35">End With</text></g><path d="M428.0 31h10"></path><path d="M 438.0 31 h 20 m -10 -10 v 20 m 10 -20 v 20"></path></g></svg>
\ No newline at end of file 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 & Chr(13) & FileDateTime( sFile ),0,"Creation time"</paragraph> <paragraph id="par_id3149484" role="bascode" xml-lang="en-US"> MsgBox sFile & Chr(13)& FileLen( sFile ),0,"File length"</paragraph> <paragraph id="par_id3152885" role="bascode" xml-lang="en-US"> MsgBox sFile & Chr(13)& 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 & Chr(13) & 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 > 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 > 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 > 0 Then Mid( fSysFp, iPos , 1,"|")</paragraph> -<paragraph id="par_idm1341085952" role="bascode" localize="false" xml-lang="en-US"> fSysURL = "file://" & 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 > 0 Then Mid( fSysFp, iPos , 1,"|")</paragraph> +<paragraph id="par_idm1341085952" role="bascode" localize="false"> fSysURL = "file://" & 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> |