Package_html_media.mk                            |    6 +
 source/media/helpimg/sbasic/Close_statement.svg  |   41 ++++++++++++
 source/media/helpimg/sbasic/Get_statement.svg    |   44 +++++++++++++
 source/media/helpimg/sbasic/Open_statement.svg   |   57 +++++++++++++++++
 source/media/helpimg/sbasic/Put_statement.svg    |   44 +++++++++++++
 source/media/helpimg/sbasic/access_fragment.svg  |   39 ++++++++++++
 source/media/helpimg/sbasic/locking_fragment.svg |   41 ++++++++++++
 source/text/sbasic/shared/03020101.xhp           |   43 +++----------
 source/text/sbasic/shared/03020103.xhp           |   71 ++++++++++++----------
 source/text/sbasic/shared/03020201.xhp           |   73 ++++++++++++-----------
 source/text/sbasic/shared/03020204.xhp           |   58 +++++-------------
 11 files changed, 384 insertions(+), 133 deletions(-)

New commits:
commit f0fc51ab506034db25dd325a3b3b0e123af62e98
Author:     Alain Romedenne <libreoffici...@sfr.fr>
AuthorDate: Tue Jul 28 17:17:19 2020 +0200
Commit:     Olivier Hallot <olivier.hal...@libreoffice.org>
CommitDate: Mon Aug 3 15:35:58 2020 +0200

    tdf131416 Basic syntax diagrams
    
    - Close, Get, Put and Open statements
    
    Change-Id: I09a89ededbf65c41a65e3d347111c9dac10cfdde
    Reviewed-on: https://gerrit.libreoffice.org/c/help/+/99601
    Tested-by: Jenkins
    Reviewed-by: Olivier Hallot <olivier.hal...@libreoffice.org>

diff --git a/Package_html_media.mk b/Package_html_media.mk
index 92d69fb0b..1c755389d 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/comment_fragment.svg \
     helpimg/sbasic/typename_fragment.svg \
     helpimg/sbasic/Call_statement.svg \
+    helpimg/sbasic/Close_statement.svg \
     helpimg/sbasic/Const_statement.svg \
     helpimg/sbasic/Dim_statement.svg \
     helpimg/sbasic/DimArray_function.svg \
@@ -126,14 +127,19 @@ $(eval $(call 
gb_Package_add_files_with_dir,helpcontent2_html_media,$(LIBO_SHARE
     helpimg/sbasic/For-Each_statement.svg \
     helpimg/sbasic/For-Next_statement.svg \
     helpimg/sbasic/Function_statement.svg \
+    helpimg/sbasic/Get_statement.svg \
     helpimg/sbasic/If_statement.svg \
     helpimg/sbasic/LetSet_statement.svg \
     helpimg/sbasic/On-Error_statement.svg \
     helpimg/sbasic/On-GoSub-GoTo_statement.svg \
     helpimg/sbasic/Option_statement.svg \
+    helpimg/sbasic/Open_statement.svg \
+    helpimg/sbasic/access_fragment.svg \
+    helpimg/sbasic/locking_fragment.svg \
     helpimg/sbasic/Print_statement.svg \
     helpimg/sbasic/Property-Get_statement.svg \
     helpimg/sbasic/Property-Set_statement.svg \
+    helpimg/sbasic/Put_statement.svg \
     helpimg/sbasic/ReDim_statement.svg \
     helpimg/sbasic/Resume_statement.svg \
     helpimg/sbasic/Select-Case_statement.svg \
diff --git a/source/media/helpimg/sbasic/Close_statement.svg 
b/source/media/helpimg/sbasic/Close_statement.svg
new file mode 100644
index 000000000..4a4a2135b
--- /dev/null
+++ b/source/media/helpimg/sbasic/Close_statement.svg
@@ -0,0 +1,41 @@
+<svg class="railroad-diagram" height="144" viewBox="0 0 430.5 144" 
width="430.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 61v20m10 -20v20m-10 -10h20"></path></g><path d="M40 
71h10"></path><g class="terminal">
+<path d="M50 71h0.0"></path><path d="M112.5 71h0.0"></path><rect height="22" 
rx="10" ry="10" width="62.5" x="50.0" y="60"></rect><text x="81.25" 
y="75">Close</text></g><path d="M112.5 71h10"></path><g>
+<path d="M122.5 71h0.0"></path><path d="M390.5 71h0.0"></path><path d="M122.5 
71a15 15 0 0 0 15 -15v-21a15 15 0 0 1 15 -15"></path><g>
+<path d="M152.5 20h208.0"></path></g><path d="M360.5 20a15 15 0 0 1 15 
15v21a15 15 0 0 0 15 15"></path><path d="M122.5 71h30"></path><g>
+<path d="M152.5 71h0.0"></path><path d="M360.5 71h0.0"></path><path d="M152.5 
71h15"></path><g>
+<path d="M167.5 71h0.0"></path><path d="M345.5 71h0.0"></path><g>
+<path d="M167.5 71h0.0"></path><path d="M256.0 71h0.0"></path><path d="M167.5 
71a15 15 0 0 0 15 -15v-1a15 15 0 0 1 15 -15"></path><g>
+<path d="M197.5 40h28.5"></path></g><path d="M226.0 40a15 15 0 0 1 15 15v1a15 
15 0 0 0 15 15"></path><path d="M167.5 71h30"></path><g class="terminal">
+<path d="M197.5 71h0.0"></path><path d="M226.0 71h0.0"></path><rect 
height="22" rx="10" ry="10" width="28.5" x="197.5" y="60"></rect><text 
x="211.75" y="75">#</text></g><path d="M226.0 71h30"></path></g><path d="M256.0 
71h10"></path><g class="terminal">
+<path d="M266.0 71h0.0"></path><path d="M345.5 71h0.0"></path><rect 
height="22" rx="10" ry="10" width="79.5" x="266.0" y="60"></rect><text 
x="305.75" y="75">fileNum</text></g></g><path d="M345.5 71h15"></path><path 
d="M167.5 71a15 15 0 0 0 -15 15v12a15 15 0 0 0 15 15"></path><g 
class="terminal">
+<path d="M167.5 113h74.75"></path><path d="M270.75 113h74.75"></path><rect 
height="22" rx="10" ry="10" width="28.5" x="242.25" y="102"></rect><text 
x="256.5" y="117">,</text></g><path d="M345.5 113a15 15 0 0 0 15 -15v-12a15 15 
0 0 0 -15 -15"></path></g><path d="M360.5 71h30"></path></g><path d="M 390.5 71 
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/Get_statement.svg 
b/source/media/helpimg/sbasic/Get_statement.svg
new file mode 100644
index 000000000..b2dc6d341
--- /dev/null
+++ b/source/media/helpimg/sbasic/Get_statement.svg
@@ -0,0 +1,44 @@
+<svg class="railroad-diagram" height="124" viewBox="0 0 755.0 124" 
width="755.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 41v20m10 -20v20m-10 -10h20"></path></g><path d="M40 
51h10"></path><g class="terminal">
+<path d="M50 51h0.0"></path><path d="M95.5 51h0.0"></path><rect height="22" 
rx="10" ry="10" width="45.5" x="50.0" y="40"></rect><text x="72.75" 
y="55">Get</text></g><path d="M95.5 51h10"></path><g>
+<path d="M105.5 51h0.0"></path><path d="M194.0 51h0.0"></path><path d="M105.5 
51a15 15 0 0 0 15 -15v-1a15 15 0 0 1 15 -15"></path><g>
+<path d="M135.5 20h28.5"></path></g><path d="M164.0 20a15 15 0 0 1 15 15v1a15 
15 0 0 0 15 15"></path><path d="M105.5 51h30"></path><g class="terminal">
+<path d="M135.5 51h0.0"></path><path d="M164.0 51h0.0"></path><rect 
height="22" rx="10" ry="10" width="28.5" x="135.5" y="40"></rect><text 
x="149.75" y="55">#</text></g><path d="M164.0 51h30"></path></g><path d="M194.0 
51h10"></path><g class="terminal">
+<path d="M204.0 51h0.0"></path><path d="M283.5 51h0.0"></path><rect 
height="22" rx="10" ry="10" width="79.5" x="204.0" y="40"></rect><text 
x="243.75" y="55">fileNum</text></g><path d="M283.5 51h10"></path><path 
d="M293.5 51h10"></path><g class="terminal">
+<path d="M303.5 51h0.0"></path><path d="M332.0 51h0.0"></path><rect 
height="22" rx="10" ry="10" width="28.5" x="303.5" y="40"></rect><text 
x="317.75" y="55">,</text></g><path d="M332.0 51h10"></path><g>
+<path d="M342.0 51h0.0"></path><path d="M558.5 51h0.0"></path><path d="M342.0 
51a15 15 0 0 0 15 -15v-1a15 15 0 0 1 15 -15"></path><g>
+<path d="M372.0 20h156.5"></path></g><path d="M528.5 20a15 15 0 0 1 15 15v1a15 
15 0 0 0 15 15"></path><path d="M342.0 51h30"></path><g>
+<path d="M372.0 51h0.0"></path><path d="M528.5 51h0.0"></path><path d="M372.0 
51h30"></path><g class="terminal">
+<path d="M402.0 51h8.5"></path><path d="M490.0 51h8.5"></path><rect 
height="22" rx="10" ry="10" width="79.5" x="410.5" y="40"></rect><text 
x="450.25" y="55">filePos</text></g><path d="M498.5 51h30"></path><path 
d="M372.0 51a15 15 0 0 1 15 15v12a15 15 0 0 0 15 15"></path><g class="terminal">
+<path d="M402.0 93h0.0"></path><path d="M498.5 93h0.0"></path><rect 
height="22" rx="10" ry="10" width="96.5" x="402.0" y="82"></rect><text 
x="450.25" y="97">recordNum</text></g><path d="M498.5 93a15 15 0 0 0 15 
-15v-12a15 15 0 0 1 15 -15"></path></g><path d="M528.5 51h30"></path></g><path 
d="M558.5 51h10"></path><g class="terminal">
+<path d="M568.5 51h0.0"></path><path d="M597.0 51h0.0"></path><rect 
height="22" rx="10" ry="10" width="28.5" x="568.5" y="40"></rect><text 
x="582.75" y="55">,</text></g><path d="M597.0 51h10"></path><path d="M607.0 
51h10"></path><g class="terminal">
+<path d="M617.0 51h0.0"></path><path d="M705.0 51h0.0"></path><rect 
height="22" rx="10" ry="10" width="88.0" x="617.0" y="40"></rect><text 
x="661.0" y="55">variable</text></g><path d="M705.0 51h10"></path><path d="M 
715.0 51 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/Open_statement.svg 
b/source/media/helpimg/sbasic/Open_statement.svg
new file mode 100644
index 000000000..7c1e1e357
--- /dev/null
+++ b/source/media/helpimg/sbasic/Open_statement.svg
@@ -0,0 +1,57 @@
+<svg class="railroad-diagram" height="230" viewBox="0 0 1189.0 230" 
width="1189.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 105v20m10 -20v20m-10 -10h20"></path></g><path d="M40 
115h10"></path><g class="terminal">
+<path d="M50 115h0.0"></path><path d="M104.0 115h0.0"></path><rect height="22" 
rx="10" ry="10" width="54.0" x="50.0" y="104"></rect><text x="77.0" 
y="119">Open</text></g><path d="M104.0 115h10"></path><path d="M114.0 
115h10"></path><g class="terminal">
+<path d="M124.0 115h0.0"></path><path d="M212.0 115h0.0"></path><rect 
height="22" rx="10" ry="10" width="88.0" x="124.0" y="104"></rect><text 
x="168.0" y="119">pathname</text></g><path d="M212.0 115h10"></path><path 
d="M222.0 115h10"></path><g>
+<path d="M232.0 115h0.0"></path><path d="M418.5 115h0.0"></path><g 
class="terminal">
+<path d="M232.0 115h0.0"></path><path d="M277.5 115h0.0"></path><rect 
height="22" rx="10" ry="10" width="45.5" x="232.0" y="104"></rect><text 
x="254.75" y="119">For</text></g><path d="M277.5 115h10"></path><g>
+<path d="M287.5 115h0.0"></path><path d="M418.5 115h0.0"></path><path 
d="M287.5 115a15 15 0 0 0 15 -15v-12a15 15 0 0 1 15 -15"></path><g 
class="terminal">
+<path d="M317.5 73h0.0"></path><path d="M388.5 73h0.0"></path><rect 
height="22" rx="10" ry="10" width="71.0" x="317.5" y="62"></rect><text 
x="353.0" y="77">Output</text></g><path d="M388.5 73a15 15 0 0 1 15 15v12a15 15 
0 0 0 15 15"></path><path d="M287.5 115a15 15 0 0 0 15 -15v-54a15 15 0 0 1 15 
-15"></path><g class="terminal">
+<path d="M317.5 31h4.25"></path><path d="M384.25 31h4.25"></path><rect 
height="22" rx="10" ry="10" width="62.5" x="321.75" y="20"></rect><text 
x="353.0" y="35">Input</text></g><path d="M388.5 31a15 15 0 0 1 15 15v54a15 15 
0 0 0 15 15"></path><path d="M287.5 115h30"></path><g class="terminal">
+<path d="M317.5 115h0.0"></path><path d="M388.5 115h0.0"></path><rect 
height="22" rx="10" ry="10" width="71.0" x="317.5" y="104"></rect><text 
x="353.0" y="119">Random</text></g><path d="M388.5 115h30"></path><path 
d="M287.5 115a15 15 0 0 1 15 15v12a15 15 0 0 0 15 15"></path><g 
class="terminal">
+<path d="M317.5 157h0.0"></path><path d="M388.5 157h0.0"></path><rect 
height="22" rx="10" ry="10" width="71.0" x="317.5" y="146"></rect><text 
x="353.0" y="161">Append</text></g><path d="M388.5 157a15 15 0 0 0 15 
-15v-12a15 15 0 0 1 15 -15"></path><path d="M287.5 115a15 15 0 0 1 15 15v54a15 
15 0 0 0 15 15"></path><g class="terminal">
+<path d="M317.5 199h0.0"></path><path d="M388.5 199h0.0"></path><rect 
height="22" rx="10" ry="10" width="71.0" x="317.5" y="188"></rect><text 
x="353.0" y="203">Binary</text></g><path d="M388.5 199a15 15 0 0 0 15 
-15v-54a15 15 0 0 1 15 -15"></path></g></g><path d="M418.5 115h10"></path><g>
+<path d="M428.5 115h0.0"></path><path d="M559.5 115h0.0"></path><path 
d="M428.5 115h30"></path><g>
+<path d="M458.5 115h71.0"></path></g><path d="M529.5 115h30"></path><path 
d="M428.5 115a15 15 0 0 1 15 15v1a15 15 0 0 0 15 15"></path><g 
class="non-terminal">
+<path d="M458.5 146h0.0"></path><path d="M529.5 146h0.0"></path><rect 
height="22" width="71.0" x="458.5" y="135"></rect><text x="494.0" 
y="150">access</text></g><path d="M529.5 146a15 15 0 0 0 15 -15v-1a15 15 0 0 1 
15 -15"></path></g><g>
+<path d="M559.5 115h0.0"></path><path d="M699.0 115h0.0"></path><path 
d="M559.5 115h30"></path><g>
+<path d="M589.5 115h79.5"></path></g><path d="M669.0 115h30"></path><path 
d="M559.5 115a15 15 0 0 1 15 15v1a15 15 0 0 0 15 15"></path><g 
class="non-terminal">
+<path d="M589.5 146h0.0"></path><path d="M669.0 146h0.0"></path><rect 
height="22" width="79.5" x="589.5" y="135"></rect><text x="629.25" 
y="150">locking</text></g><path d="M669.0 146a15 15 0 0 0 15 -15v-1a15 15 0 0 1 
15 -15"></path></g><path d="M699.0 115h10"></path><g class="terminal">
+<path d="M709.0 115h0.0"></path><path d="M746.0 115h0.0"></path><rect 
height="22" rx="10" ry="10" width="37.0" x="709.0" y="104"></rect><text 
x="727.5" y="119">As</text></g><path d="M746.0 115h10"></path><g>
+<path d="M756.0 115h0.0"></path><path d="M844.5 115h0.0"></path><path 
d="M756.0 115a15 15 0 0 0 15 -15v-1a15 15 0 0 1 15 -15"></path><g>
+<path d="M786.0 84h28.5"></path></g><path d="M814.5 84a15 15 0 0 1 15 15v1a15 
15 0 0 0 15 15"></path><path d="M756.0 115h30"></path><g class="terminal">
+<path d="M786.0 115h0.0"></path><path d="M814.5 115h0.0"></path><rect 
height="22" rx="10" ry="10" width="28.5" x="786.0" y="104"></rect><text 
x="800.25" y="119">#</text></g><path d="M814.5 115h30"></path></g><path 
d="M844.5 115h10"></path><g class="terminal">
+<path d="M854.5 115h0.0"></path><path d="M934.0 115h0.0"></path><rect 
height="22" rx="10" ry="10" width="79.5" x="854.5" y="104"></rect><text 
x="894.25" y="119">filenum</text></g><path d="M934.0 115h10"></path><g>
+<path d="M944.0 115h0.0"></path><path d="M1149.0 115h0.0"></path><path 
d="M944.0 115h30"></path><g>
+<path d="M974.0 115h145.0"></path></g><path d="M1119.0 115h30"></path><path 
d="M944.0 115a15 15 0 0 1 15 15v1a15 15 0 0 0 15 15"></path><g>
+<path d="M974.0 146h0.0"></path><path d="M1119.0 146h0.0"></path><g 
class="terminal">
+<path d="M974.0 146h0.0"></path><path d="M1028.0 146h0.0"></path><rect 
height="22" rx="10" ry="10" width="54.0" x="974.0" y="135"></rect><text 
x="1001.0" y="150">Len=</text></g><path d="M1028.0 146h10"></path><path 
d="M1038.0 146h10"></path><g class="terminal">
+<path d="M1048.0 146h0.0"></path><path d="M1119.0 146h0.0"></path><rect 
height="22" rx="10" ry="10" width="71.0" x="1048.0" y="135"></rect><text 
x="1083.5" y="150">recLen</text></g></g><path d="M1119.0 146a15 15 0 0 0 15 
-15v-1a15 15 0 0 1 15 -15"></path></g><path d="M 1149.0 115 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/Put_statement.svg 
b/source/media/helpimg/sbasic/Put_statement.svg
new file mode 100644
index 000000000..5f50458dc
--- /dev/null
+++ b/source/media/helpimg/sbasic/Put_statement.svg
@@ -0,0 +1,44 @@
+<svg class="railroad-diagram" height="124" viewBox="0 0 755.0 124" 
width="755.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 41v20m10 -20v20m-10 -10h20"></path></g><path d="M40 
51h10"></path><g class="terminal">
+<path d="M50 51h0.0"></path><path d="M95.5 51h0.0"></path><rect height="22" 
rx="10" ry="10" width="45.5" x="50.0" y="40"></rect><text x="72.75" 
y="55">Put</text></g><path d="M95.5 51h10"></path><g>
+<path d="M105.5 51h0.0"></path><path d="M194.0 51h0.0"></path><path d="M105.5 
51a15 15 0 0 0 15 -15v-1a15 15 0 0 1 15 -15"></path><g>
+<path d="M135.5 20h28.5"></path></g><path d="M164.0 20a15 15 0 0 1 15 15v1a15 
15 0 0 0 15 15"></path><path d="M105.5 51h30"></path><g class="terminal">
+<path d="M135.5 51h0.0"></path><path d="M164.0 51h0.0"></path><rect 
height="22" rx="10" ry="10" width="28.5" x="135.5" y="40"></rect><text 
x="149.75" y="55">#</text></g><path d="M164.0 51h30"></path></g><path d="M194.0 
51h10"></path><g class="terminal">
+<path d="M204.0 51h0.0"></path><path d="M283.5 51h0.0"></path><rect 
height="22" rx="10" ry="10" width="79.5" x="204.0" y="40"></rect><text 
x="243.75" y="55">fileNum</text></g><path d="M283.5 51h10"></path><path 
d="M293.5 51h10"></path><g class="terminal">
+<path d="M303.5 51h0.0"></path><path d="M332.0 51h0.0"></path><rect 
height="22" rx="10" ry="10" width="28.5" x="303.5" y="40"></rect><text 
x="317.75" y="55">,</text></g><path d="M332.0 51h10"></path><g>
+<path d="M342.0 51h0.0"></path><path d="M558.5 51h0.0"></path><path d="M342.0 
51a15 15 0 0 0 15 -15v-1a15 15 0 0 1 15 -15"></path><g>
+<path d="M372.0 20h156.5"></path></g><path d="M528.5 20a15 15 0 0 1 15 15v1a15 
15 0 0 0 15 15"></path><path d="M342.0 51h30"></path><g>
+<path d="M372.0 51h0.0"></path><path d="M528.5 51h0.0"></path><path d="M372.0 
51h30"></path><g class="terminal">
+<path d="M402.0 51h8.5"></path><path d="M490.0 51h8.5"></path><rect 
height="22" rx="10" ry="10" width="79.5" x="410.5" y="40"></rect><text 
x="450.25" y="55">filePos</text></g><path d="M498.5 51h30"></path><path 
d="M372.0 51a15 15 0 0 1 15 15v12a15 15 0 0 0 15 15"></path><g class="terminal">
+<path d="M402.0 93h0.0"></path><path d="M498.5 93h0.0"></path><rect 
height="22" rx="10" ry="10" width="96.5" x="402.0" y="82"></rect><text 
x="450.25" y="97">recordNum</text></g><path d="M498.5 93a15 15 0 0 0 15 
-15v-12a15 15 0 0 1 15 -15"></path></g><path d="M528.5 51h30"></path></g><path 
d="M558.5 51h10"></path><g class="terminal">
+<path d="M568.5 51h0.0"></path><path d="M597.0 51h0.0"></path><rect 
height="22" rx="10" ry="10" width="28.5" x="568.5" y="40"></rect><text 
x="582.75" y="55">,</text></g><path d="M597.0 51h10"></path><path d="M607.0 
51h10"></path><g class="terminal">
+<path d="M617.0 51h0.0"></path><path d="M705.0 51h0.0"></path><rect 
height="22" rx="10" ry="10" width="88.0" x="617.0" y="40"></rect><text 
x="661.0" y="55">variable</text></g><path d="M705.0 51h10"></path><path d="M 
715.0 51 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/access_fragment.svg 
b/source/media/helpimg/sbasic/access_fragment.svg
new file mode 100644
index 000000000..74302ec6c
--- /dev/null
+++ b/source/media/helpimg/sbasic/access_fragment.svg
@@ -0,0 +1,39 @@
+<svg class="railroad-diagram" height="166" viewBox="0 0 386.0 166" 
width="386.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 83v20m0 -10h20"></path></g><g>
+<path d="M40 93h0.0"></path><path d="M346.0 93h0.0"></path><path d="M40.0 
93a15 15 0 0 0 15 -15v-43a15 15 0 0 1 15 -15"></path><g>
+<path d="M70.0 20h246.0"></path></g><path d="M316.0 20a15 15 0 0 1 15 15v43a15 
15 0 0 0 15 15"></path><path d="M40.0 93h30"></path><g>
+<path d="M70.0 93h0.0"></path><path d="M316.0 93h0.0"></path><g 
class="terminal">
+<path d="M70.0 93h0.0"></path><path d="M141.0 93h0.0"></path><rect height="22" 
rx="10" ry="10" width="71.0" x="70.0" y="82"></rect><text x="105.5" 
y="97">Access</text></g><path d="M141.0 93h10"></path><g>
+<path d="M151.0 93h0.0"></path><path d="M316.0 93h0.0"></path><path d="M151.0 
93a15 15 0 0 0 15 -15v-12a15 15 0 0 1 15 -15"></path><g class="terminal">
+<path d="M181.0 51h25.5"></path><path d="M260.5 51h25.5"></path><rect 
height="22" rx="10" ry="10" width="54.0" x="206.5" y="40"></rect><text 
x="233.5" y="55">Read</text></g><path d="M286.0 51a15 15 0 0 1 15 15v12a15 15 0 
0 0 15 15"></path><path d="M151.0 93h30"></path><g class="terminal">
+<path d="M181.0 93h0.0"></path><path d="M286.0 93h0.0"></path><rect 
height="22" rx="10" ry="10" width="105.0" x="181.0" y="82"></rect><text 
x="233.5" y="97">Read Write</text></g><path d="M286.0 93h30"></path><path 
d="M151.0 93a15 15 0 0 1 15 15v12a15 15 0 0 0 15 15"></path><g class="terminal">
+<path d="M181.0 135h21.25"></path><path d="M264.75 135h21.25"></path><rect 
height="22" rx="10" ry="10" width="62.5" x="202.25" y="124"></rect><text 
x="233.5" y="139">Write</text></g><path d="M286.0 135a15 15 0 0 0 15 -15v-12a15 
15 0 0 1 15 -15"></path></g></g><path d="M316.0 93h30"></path></g><path d="M 
346.0 93 h 20 m 0 -10 v 20"></path></g></svg>
\ No newline at end of file
diff --git a/source/media/helpimg/sbasic/locking_fragment.svg 
b/source/media/helpimg/sbasic/locking_fragment.svg
new file mode 100644
index 000000000..331f54690
--- /dev/null
+++ b/source/media/helpimg/sbasic/locking_fragment.svg
@@ -0,0 +1,41 @@
+<svg class="railroad-diagram" height="208" viewBox="0 0 429.0 208" 
width="429.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 41v20m0 -10h20"></path></g><g>
+<path d="M40 51h0.0"></path><path d="M389.0 51h0.0"></path><path d="M40.0 
51a15 15 0 0 0 15 -15v-1a15 15 0 0 1 15 -15"></path><g>
+<path d="M70.0 20h289.0"></path></g><path d="M359.0 20a15 15 0 0 1 15 15v1a15 
15 0 0 0 15 15"></path><path d="M40.0 51h30"></path><g>
+<path d="M70.0 51h0.0"></path><path d="M359.0 51h0.0"></path><path d="M70.0 
51h30"></path><g class="terminal">
+<path d="M100.0 51h83.25"></path><path d="M245.75 51h83.25"></path><rect 
height="22" rx="10" ry="10" width="62.5" x="183.25" y="40"></rect><text 
x="214.5" y="55">Share</text></g><path d="M329.0 51h30"></path><path d="M70.0 
51a15 15 0 0 1 15 15v54a15 15 0 0 0 15 15"></path><g>
+<path d="M100.0 135h0.0"></path><path d="M329.0 135h0.0"></path><g 
class="terminal">
+<path d="M100.0 135h0.0"></path><path d="M154.0 135h0.0"></path><rect 
height="22" rx="10" ry="10" width="54.0" x="100.0" y="124"></rect><text 
x="127.0" y="139">Lock</text></g><path d="M154.0 135h10"></path><g>
+<path d="M164.0 135h0.0"></path><path d="M329.0 135h0.0"></path><path 
d="M164.0 135a15 15 0 0 0 15 -15v-12a15 15 0 0 1 15 -15"></path><g 
class="terminal">
+<path d="M194.0 93h25.5"></path><path d="M273.5 93h25.5"></path><rect 
height="22" rx="10" ry="10" width="54.0" x="219.5" y="82"></rect><text 
x="246.5" y="97">Read</text></g><path d="M299.0 93a15 15 0 0 1 15 15v12a15 15 0 
0 0 15 15"></path><path d="M164.0 135h30"></path><g class="terminal">
+<path d="M194.0 135h0.0"></path><path d="M299.0 135h0.0"></path><rect 
height="22" rx="10" ry="10" width="105.0" x="194.0" y="124"></rect><text 
x="246.5" y="139">Read Write</text></g><path d="M299.0 135h30"></path><path 
d="M164.0 135a15 15 0 0 1 15 15v12a15 15 0 0 0 15 15"></path><g 
class="terminal">
+<path d="M194.0 177h21.25"></path><path d="M277.75 177h21.25"></path><rect 
height="22" rx="10" ry="10" width="62.5" x="215.25" y="166"></rect><text 
x="246.5" y="181">Write</text></g><path d="M299.0 177a15 15 0 0 0 15 -15v-12a15 
15 0 0 1 15 -15"></path></g></g><path d="M329.0 135a15 15 0 0 0 15 -15v-54a15 
15 0 0 1 15 -15"></path></g><path d="M359.0 51h30"></path></g><path d="M 389.0 
51 h 20 m 0 -10 v 20"></path></g></svg>
\ No newline at end of file
diff --git a/source/text/sbasic/shared/03020101.xhp 
b/source/text/sbasic/shared/03020101.xhp
index 608027d66..79247f40c 100644
--- a/source/text/sbasic/shared/03020101.xhp
+++ b/source/text/sbasic/shared/03020101.xhp
@@ -34,44 +34,23 @@
 </bookmark>
 
 
-<paragraph id="hd_id3157896" role="heading" level="1" xml-lang="en-US"><link 
href="text/sbasic/shared/03020101.xhp" name="Close Statement">Close 
Statement</link></paragraph>
+<h1 id="hd_id3157896"><variable id="Close_h1"><link 
href="text/sbasic/shared/03020101.xhp" name="Close Statement">Close 
Statement</link></variable></h1>
 <paragraph id="par_id3147573" role="paragraph" xml-lang="en-US">Closes a 
specified file that was opened with the Open statement.</paragraph>
 </section>
 
-<paragraph id="hd_id3156344" 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/Close_statement.svg" 
id="img_id4156296484514"><alt xml-lang="en-US" id="alt_id15152796484514">Close 
Statement diagram</alt></image>
+</paragraph>
 <bascode>
-<paragraph id="par_id3147265" role="bascode" xml-lang="en-US">Close FileNumber 
As Integer[, FileNumber2 As Integer[,...]] </paragraph>
+<paragraph id="par_id3147265" role="bascode" xml-lang="en-US">Close 
[[#]fileNum [, [#]fileNum2 [,...]]]</paragraph>
 </bascode>
 
-<paragraph id="hd_id3153379" role="heading" level="2" 
xml-lang="en-US">Parameters:</paragraph>
-<paragraph id="par_id3150791" role="paragraph" xml-lang="en-US"> 
<emph>FileNumber:</emph> Any integer expression that specifies the number of 
the data channel that was opened with the <emph>Open</emph> 
statement.</paragraph>
+<embed href="text/sbasic/shared/00000003.xhp#functparameters"/>
+<paragraph id="par_id3150791" role="paragraph" xml-lang="en-US"> 
<emph>fileNum:</emph> Any integer expression that specifies the number of the 
data channel that was opened with the <emph>Open</emph> statement.</paragraph>
 
-<paragraph id="hd_id3153192" role="heading" level="2" 
xml-lang="en-US">Example:</paragraph>
-<bascode>
-<paragraph id="par_idm1341290400" role="bascode" localize="false" 
xml-lang="en-US">Sub ExampleWorkWithAFile</paragraph>
-<paragraph id="par_idm1341289152" role="bascode" localize="false" 
xml-lang="en-US">Dim iNumber As Integer</paragraph>
-<paragraph id="par_idm1341287920" role="bascode" localize="false" 
xml-lang="en-US">Dim sLine As String</paragraph>
-<paragraph id="par_idm1341286688" role="bascode" localize="false" 
xml-lang="en-US">Dim aFile As String</paragraph>
-<paragraph id="par_idm1341285456" role="bascode" localize="false" 
xml-lang="en-US">Dim sMsg As String</paragraph>
-<paragraph id="par_idm1341284224" role="bascode" localize="false" 
xml-lang="en-US">    aFile = "c:\data.txt"</paragraph>
-<paragraph id="par_idm1341282976" role="bascode" localize="false" 
xml-lang="en-US">    sMsg = ""</paragraph>
-<paragraph id="par_idm1341281744" role="bascode" localize="false" 
xml-lang="en-US">    iNumber = Freefile</paragraph>
-<paragraph id="par_idm1341280512" role="bascode" localize="false" 
xml-lang="en-US">    Open aFile For Output As #iNumber</paragraph>
-<paragraph id="par_id3153727" role="bascode" xml-lang="en-US">    Print 
#iNumber, "First line of text"</paragraph>
-<paragraph id="par_id3147350" role="bascode" xml-lang="en-US">    Print 
#iNumber, "Another line of text"</paragraph>
-<paragraph id="par_idm1340923792" role="bascode" localize="false" 
xml-lang="en-US">    Close #iNumber</paragraph>
-<paragraph id="par_idm1340922560" role="bascode" localize="false" 
xml-lang="en-US">    iNumber = Freefile</paragraph>
-<paragraph id="par_idm1340921328" role="bascode" localize="false" 
xml-lang="en-US">    Open aFile For Input As iNumber</paragraph>
-<paragraph id="par_idm1340920080" role="bascode" localize="false" 
xml-lang="en-US">    While Not eof(iNumber)</paragraph>
-<paragraph id="par_idm1340918832" role="bascode" localize="false" 
xml-lang="en-US">        Line Input #iNumber, sLine</paragraph>
-<paragraph id="par_idm1340917584" role="bascode" localize="false" 
xml-lang="en-US">        If sLine &lt;&gt;"" Then</paragraph>
-<paragraph id="par_idm1340916336" role="bascode" localize="false" 
xml-lang="en-US">            sMsg = sMsg &amp; sLine &amp; chr(13)</paragraph>
-<paragraph id="par_idm1340915072" role="bascode" localize="false" 
xml-lang="en-US">        End If</paragraph>
-<paragraph id="par_idm1340913840" role="bascode" localize="false" 
xml-lang="en-US">    Wend</paragraph>
-<paragraph id="par_idm1340912608" role="bascode" localize="false" 
xml-lang="en-US">    Close #iNumber</paragraph>
-<paragraph id="par_idm1340911376" role="bascode" localize="false" 
xml-lang="en-US">    MsgBox sMsg</paragraph>
-<paragraph id="par_idm1340910144" role="bascode" localize="false" 
xml-lang="en-US">End Sub</paragraph>
-</bascode>
-</body>
+<embed href="text/sbasic/shared/00000003.xhp#functexample"/>
+<embed href="text/sbasic/shared/03020103.xhp#FileExample"/>
 
+</body>
 </helpdocument>
\ No newline at end of file
diff --git a/source/text/sbasic/shared/03020103.xhp 
b/source/text/sbasic/shared/03020103.xhp
index 14daf4955..bb605bc89 100644
--- a/source/text/sbasic/shared/03020103.xhp
+++ b/source/text/sbasic/shared/03020103.xhp
@@ -33,49 +33,60 @@
   <bookmark_value>Open statement</bookmark_value>
 </bookmark>
 
-
-<h1 id="hd_id3150791"><link href="text/sbasic/shared/03020103.xhp" name="Open 
Statement">Open Statement</link></h1>
+<h1 id="hd_id3150791"><variable id="Open_h1"><link 
href="text/sbasic/shared/03020103.xhp" name="Open Statement">Open 
Statement</link></variable></h1>
 <paragraph id="par_id3150769" role="paragraph" xml-lang="en-US">Opens a data 
channel.</paragraph>
 </section>
 
 <embed href="text/sbasic/shared/00000003.xhp#functsyntax"/>
+<paragraph role="paragraph" id="par_id971587473488701">
+  <image src="media/helpimg/sbasic/Open_statement.svg" 
id="img_id4156296484514"><alt xml-lang="en-US" id="alt_id15152796484514">Open 
Statement diagram</alt></image>
+</paragraph>
+<paragraph role="paragraph" id="par_id971587473488702">
+  <image src="media/helpimg/sbasic/access_fragment.svg" 
id="img_id4156296484515"><alt xml-lang="en-US" id="alt_id15152796484515">access 
fragment diagram</alt></image>
+</paragraph>
+<paragraph role="paragraph" id="par_id971587473488703">
+  <image src="media/helpimg/sbasic/locking_fragment.svg" 
id="img_id4156296484516"><alt xml-lang="en-US" 
id="alt_id15152796484516">locking fragment diagram</alt></image>
+</paragraph>
 <bascode>
-<paragraph id="par_id3154124" localize="false" role="bascode" 
xml-lang="en-US">Open FileName As String [For Mode] [Access IOMode] [Protected] 
As [#]FileNumber As Integer [Len = 
DatasetLength]<comment>i37502</comment></paragraph>
+<paragraph id="par_id3154124" localize="false" role="bascode">Open pathname 
For mode [Access io] [locking] As [#]filenum [Len=recLen]</paragraph>
 </bascode>
 
 <embed href="text/sbasic/shared/00000003.xhp#functparameters"/>
-<paragraph id="par_id3155132" role="paragraph" xml-lang="en-US"> 
<emph>FileName: </emph>Name and path of the file to open. If you try to read a 
file that does not exist (Access = Read), an error message appears. If you try 
to write to a file that does not exist (Access = Write), a new file is 
created.</paragraph>
-<paragraph id="par_id3149262" role="paragraph" xml-lang="en-US"> 
<emph>Mode:</emph> Keyword that specifies the file mode. Valid values: Append 
(append to sequential file), Binary (data can be accessed by bytes using Get 
and Put), Input (opens data channel for reading), Output (opens data channel 
for writing), and Random (edits relative files).</paragraph>
-<paragraph id="par_id3154014" role="paragraph" xml-lang="en-US"> 
<emph>IOMode:</emph> Keyword that defines the access type. Valid values: Read 
(read-only), Write (write-only), Read Write (both).</paragraph>
-<paragraph id="par_id3150011" role="paragraph" xml-lang="en-US"> 
<emph>Protected:</emph> Keyword that defines the security status of a file 
after opening. Valid values: Shared (file may be opened by other applications), 
Lock Read (file is protected against reading), Lock Write (file is protected 
against writing), Lock Read Write (denies file access).</paragraph>
-<paragraph id="par_id3153190" role="paragraph" xml-lang="en-US"> 
<emph>FileNumber:</emph> Any integer expression from 0 to 511 to indicate the 
number of a free data channel. You can then pass commands through the data 
channel to access the file. The file number must be determined by the FreeFile 
function immediately before the Open statement.</paragraph>
-<paragraph id="par_id3151115" role="paragraph" xml-lang="en-US"> 
<emph>DatasetLength:</emph> For random access files, set the length of the 
records.<comment>#61736</comment></paragraph>
+<paragraph id="par_id3155132" role="paragraph" xml-lang="en-US"> 
<emph>pathname: </emph>Path and name of the file to open. If you try to read a 
file that does not exist (Access = Read), an error message appears. If you try 
to write to a file that does not exist (Access = Write), a new file is 
created.</paragraph>
+<paragraph id="par_id3149262" role="paragraph" xml-lang="en-US"> 
<emph>mode:</emph> Keyword that specifies the file mode. Valid values: 
<literal>Append</literal> (append to sequential file), 
<literal>Binary</literal> (data can be accessed by bytes using Get and Put), 
<literal>Input</literal> (opens data channel for reading), 
<literal>Output</literal> (opens data channel for writing), and 
<literal>Random</literal> (edits relative files).</paragraph>
+<paragraph id="par_id3154014" role="paragraph" xml-lang="en-US"> 
<emph>io:</emph> Keyword that defines the access type. Valid values: 
<literal>Read</literal> (read-only), <literal>Write</literal> (write-only), 
<literal>Read Write</literal> (both).</paragraph>
+<paragraph id="par_id3150011" role="paragraph" xml-lang="en-US"> 
<emph>locking:</emph> Keyword that defines the security status of a file after 
opening. Valid values: <literal>Shared</literal> (file may be opened by other 
applications), <literal>Lock Read</literal> (file is protected against 
reading), <literal>Lock Write</literal> (file is protected against writing), 
<literal>Lock Read Write</literal> (denies file access).</paragraph>
+<paragraph id="par_id3153190" role="paragraph" xml-lang="en-US"> 
<emph>filenum:</emph> Any integer expression from 0 to 511 to indicate the 
number of a free data channel. You can then pass commands through the data 
channel to access the file. The file number must be determined by the FreeFile 
function immediately before the Open statement.</paragraph>
+  <paragraph id="par_id3151115" role="paragraph" xml-lang="en-US"> 
<emph>recLen:</emph> For <literal>Random</literal> access files, set the length 
of the records.<comment>#61736</comment></paragraph>
 <note id="par_id3153418">You can only modify the contents of a file that was 
opened with the Open statement. If you try to open a file that is already open, 
an error message appears.</note>
 
 <embed href="text/sbasic/shared/00000003.xhp#functexample"/>
+<section id="FileExample">
 <bascode>
-<paragraph id="par_idm1341597584" role="bascode" localize="false" 
xml-lang="en-US">Sub ExampleWorkWithAFile</paragraph>
-<paragraph id="par_idm1341596336" role="bascode" localize="false" 
xml-lang="en-US">Dim iNumber As Integer</paragraph>
-<paragraph id="par_idm1341595104" role="bascode" localize="false" 
xml-lang="en-US">Dim sLine As String</paragraph>
-<paragraph id="par_idm1341593872" role="bascode" localize="false" 
xml-lang="en-US">Dim aFile As String</paragraph>
-<paragraph id="par_idm1341592640" role="bascode" localize="false" 
xml-lang="en-US">Dim sMsg As String</paragraph>
-<paragraph id="par_idm1341591408" role="bascode" localize="false" 
xml-lang="en-US">    aFile = "c:\data.txt"</paragraph>
-<paragraph id="par_idm1341590160" role="bascode" localize="false" 
xml-lang="en-US">    iNumber = Freefile</paragraph>
-<paragraph id="par_idm1341588928" role="bascode" localize="false" 
xml-lang="en-US">    Open aFile For Output As #iNumber</paragraph>
+<paragraph id="par_idm1341597584" role="bascode" localize="false">Sub 
ExampleWorkWithAFile</paragraph>
+<paragraph id="par_idm1341596336" role="bascode" localize="false">Dim iNumber 
As Integer</paragraph>
+<paragraph id="par_idm1341595104" role="bascode" localize="false">Dim sLine As 
String</paragraph>
+<paragraph id="par_idm1341593872" role="bascode" localize="false">Dim aFile As 
String</paragraph>
+<paragraph id="par_idm1341592640" role="bascode" localize="false">Dim sMsg As 
String</paragraph>
+<paragraph id="par_idm1341591408" role="bascode" localize="false">    aFile = 
"c:\data.txt"</paragraph>
+<paragraph id="par_idm1341590160" role="bascode" localize="false">    iNumber 
= Freefile</paragraph>
+<paragraph id="par_idm1341588928" role="bascode" localize="false">    Open 
aFile For Output As #iNumber</paragraph>
 <paragraph id="par_id3154705" role="bascode" xml-lang="en-US">    Print 
#iNumber, "This is a line of text"</paragraph>
 <paragraph id="par_id3146916" role="bascode" xml-lang="en-US">    Print 
#iNumber, "This is another line of text"</paragraph>
-<paragraph id="par_idm1341584144" role="bascode" localize="false" 
xml-lang="en-US">    Close #iNumber</paragraph>
-<paragraph id="par_idm1341582912" role="bascode" localize="false" 
xml-lang="en-US">    iNumber = Freefile</paragraph>
-<paragraph id="par_idm1341581680" role="bascode" localize="false" 
xml-lang="en-US">    Open aFile For Input As iNumber</paragraph>
-<paragraph id="par_idm1341580432" role="bascode" localize="false" 
xml-lang="en-US">    While Not eof(iNumber)</paragraph>
-<paragraph id="par_idm1341579184" role="bascode" localize="false" 
xml-lang="en-US">        Line Input #iNumber, sLine</paragraph>
-<paragraph id="par_idm1341577936" role="bascode" localize="false" 
xml-lang="en-US">        If sLine &lt;&gt;"" Then</paragraph>
-<paragraph id="par_idm1341576688" role="bascode" localize="false" 
xml-lang="en-US">            sMsg = sMsg &amp; sLine &amp; chr(13)</paragraph>
-<paragraph id="par_idm1341575424" role="bascode" localize="false" 
xml-lang="en-US">        End If</paragraph>
-<paragraph id="par_idm1341574192" role="bascode" localize="false" 
xml-lang="en-US">    Wend</paragraph>
-<paragraph id="par_idm1341572960" role="bascode" localize="false" 
xml-lang="en-US">    Close #iNumber</paragraph>
-<paragraph id="par_idm1341571728" role="bascode" localize="false" 
xml-lang="en-US">    MsgBox sMsg</paragraph>
-<paragraph id="par_idm1341570496" role="bascode" localize="false" 
xml-lang="en-US">End Sub</paragraph>
+<paragraph id="par_idm1341584144" role="bascode" localize="false">    Close 
#iNumber</paragraph>
+<paragraph id="par_idm1341582912" role="bascode" localize="false">    iNumber 
= Freefile</paragraph>
+<paragraph id="par_idm1341581680" role="bascode" localize="false">    Open 
aFile For Input As iNumber</paragraph>
+<paragraph id="par_idm1341580432" role="bascode" localize="false">    While 
Not eof(iNumber)</paragraph>
+<paragraph id="par_idm1341579184" role="bascode" localize="false">        Line 
Input #iNumber, sLine</paragraph>
+<paragraph id="par_idm1341577936" role="bascode" localize="false">        If 
sLine &lt;&gt;"" Then</paragraph>
+<paragraph id="par_idm1341576688" role="bascode" localize="false">            
sMsg = sMsg &amp; sLine &amp; chr(13)</paragraph>
+<paragraph id="par_idm1341575424" role="bascode" localize="false">        End 
If</paragraph>
+<paragraph id="par_idm1341574192" role="bascode" localize="false">    
Wend</paragraph>
+<paragraph id="par_idm1341572960" role="bascode" localize="false">    Close 
#iNumber</paragraph>
+<paragraph id="par_idm1341571728" role="bascode" localize="false">    MsgBox 
sMsg</paragraph>
+<paragraph id="par_idm1341570496" role="bascode" localize="false">End 
Sub</paragraph>
 </bascode>
+</section>
+
 </body>
-</helpdocument>
+</helpdocument>
\ No newline at end of file
diff --git a/source/text/sbasic/shared/03020201.xhp 
b/source/text/sbasic/shared/03020201.xhp
index eb46b84dd..b2885659d 100644
--- a/source/text/sbasic/shared/03020201.xhp
+++ b/source/text/sbasic/shared/03020201.xhp
@@ -27,58 +27,67 @@
 
 <body>
 
-
 <section id="get">
 <bookmark xml-lang="en-US" branch="index" id="bm_id3154927">
   <bookmark_value>Get statement</bookmark_value>
 </bookmark>
 
-
-<paragraph id="hd_id3154927" role="heading" level="1" xml-lang="en-US"><link 
href="text/sbasic/shared/03020201.xhp">Get Statement</link></paragraph>
+<h1 id="hd_id3154927"><variable id="Get_h1"><link 
href="text/sbasic/shared/03020201.xhp">Get Statement</link></variable></h1>
 <paragraph id="par_id3145069" role="paragraph" xml-lang="en-US">Reads a record 
from a relative file, or a sequence of bytes from a binary file, into a 
variable.</paragraph>
 </section>
 <paragraph id="par_id3154346" role="paragraph" xml-lang="en-US">See also: 
<link href="text/sbasic/shared/03020204.xhp" name="PUT"><item 
type="literal">PUT</item></link> Statement</paragraph>
 
-<paragraph id="hd_id3150358" 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/Get_statement.svg" 
id="img_id4156296484514"><alt xml-lang="en-US" id="alt_id15152796484514">Get 
Statement diagram</alt></image>
+</paragraph>
 <bascode>
-<paragraph id="par_id3150792" role="bascode" xml-lang="en-US">Get [#] 
FileNumber As Integer, [Position], Variable</paragraph>
+<paragraph id="par_id3150792" role="bascode" xml-lang="en-US">Get [#]fileNum, 
[recordNum|filePos], variable</paragraph>
 </bascode>
 
-<paragraph id="hd_id3154138" role="heading" level="2" 
xml-lang="en-US">Parameters:</paragraph>
-<paragraph id="par_id3150448" role="paragraph" xml-lang="en-US"> 
<emph>FileNumber:</emph> Any integer expression that determines the file 
number.</paragraph>
-<paragraph id="par_id3154684" role="paragraph" xml-lang="en-US"> 
<emph>Position:</emph> For files opened in Random mode, <emph>Position</emph> 
is the number of the record that you want to read.</paragraph>
-<paragraph id="par_id3153768" role="paragraph" xml-lang="en-US">For files 
opened in Binary mode, <emph>Position</emph> is the byte position in the file 
where the reading starts.</paragraph>
-<paragraph id="par_id3147319" role="paragraph" xml-lang="en-US">If 
<emph>Position</emph> is omitted, the current position or the current data 
record of the file is used.</paragraph>
-<paragraph id="par_id3149484" role="paragraph" xml-lang="en-US">Variable: Name 
of the variable to be read. With the exception of object variables, you can use 
any variable type.</paragraph>
+<embed href="text/sbasic/shared/00000003.xhp#functparameters"/>
+<paragraph id="par_id3150448" role="paragraph" xml-lang="en-US"> 
<emph>fileNum:</emph> Any integer expression that determines the file 
number.</paragraph>
+<paragraph id="par_id3154684" role="paragraph" xml-lang="en-US"> 
<emph>recordNum:</emph> For files opened in Random mode, <emph>recordNum</emph> 
is the number of the record that you want to read.</paragraph>
+<paragraph id="par_id3153768" role="paragraph" xml-lang="en-US">For files 
opened in Binary mode, <emph>filePos</emph> is the byte position in the file 
where the reading starts.</paragraph>
+<paragraph id="par_id3147319" role="paragraph" xml-lang="en-US">If 
<emph>recordNum</emph> and <emph>filePos</emph> are omitted, the current 
position or the current data record of the file is used.</paragraph>
+  <paragraph id="par_id3149484" role="paragraph" 
xml-lang="en-US"><emph>variable:</emph> Name of the variable to be read. With 
the exception of object variables, you can use any variable type.</paragraph>
 
-<paragraph id="hd_id3153144" role="heading" level="2" 
xml-lang="en-US">Example:</paragraph>
+<section id="ExampleRandomAccess">
+<embed href="text/sbasic/shared/00000003.xhp#functexample"/>
 <bascode>
-<paragraph id="par_idm1340774864" role="bascode" localize="false" 
xml-lang="en-US">Sub ExampleRandomAccess</paragraph>
-<paragraph id="par_idm1340773632" role="bascode" localize="false" 
xml-lang="en-US">Dim iNumber As Integer</paragraph>
-<paragraph id="par_id3155307" role="bascode" xml-lang="en-US">Dim sText As 
Variant ' Must be a variant</paragraph>
-<paragraph id="par_idm1340770608" role="bascode" localize="false" 
xml-lang="en-US">Dim aFile As String</paragraph>
-<paragraph id="par_idm1340769376" role="bascode" localize="false" 
xml-lang="en-US">    aFile = "c:\data.txt"</paragraph>
-<paragraph id="par_idm1340768128" role="bascode" localize="false" 
xml-lang="en-US">    iNumber = Freefile</paragraph>
-<paragraph id="par_idm1340766896" role="bascode" localize="false" 
xml-lang="en-US">    Open aFile For Random As #iNumber Len=32</paragraph>
+<paragraph id="par_idm1340774864" role="bascode" localize="false">Sub 
ExampleRandomAccess</paragraph>
+<paragraph id="par_idm1340773632" role="bascode" localize="false">    Dim 
iNumber As Integer</paragraph>
+<paragraph id="par_id3155307" role="bascode" xml-lang="en-US">    Dim sText As 
Variant ' Must be a variant</paragraph>
+<paragraph id="par_idm1340770608" role="bascode" localize="false">    Dim 
aFile As String</paragraph>
+<paragraph id="par_idm1340769376" role="bascode" localize="false">    aFile = 
"c:\data.txt"</paragraph>
+<paragraph id="par_idm1340768128" role="bascode" localize="false">    iNumber 
= Freefile</paragraph>
+<paragraph id="par_idm1340766896" role="bascode" localize="false">    Open 
aFile For Random As #iNumber Len=32</paragraph>
 <paragraph id="par_id3149411" role="bascode" xml-lang="en-US">    Seek 
#iNumber,1 ' Position at beginning</paragraph>
 <paragraph id="par_id3153158" role="bascode" xml-lang="en-US">    Put 
#iNumber,, "This is the first line of text" ' Fill line with text</paragraph>
 <paragraph id="par_id3148457" role="bascode" xml-lang="en-US">    Put 
#iNumber,, "This is the second line of text"</paragraph>
 <paragraph id="par_id3150715" role="bascode" xml-lang="en-US">    Put 
#iNumber,, "This is the third line of text"</paragraph>
-<paragraph id="par_idm1340758576" role="bascode" localize="false" 
xml-lang="en-US">    Seek #iNumber,2</paragraph>
-<paragraph id="par_idm1340757344" role="bascode" localize="false" 
xml-lang="en-US">    Get #iNumber,,sText</paragraph>
-<paragraph id="par_idm1340756112" role="bascode" localize="false" 
xml-lang="en-US">    Print sText</paragraph>
-<paragraph id="par_idm1340754880" role="bascode" localize="false" 
xml-lang="en-US">    Close #iNumber</paragraph>
-<paragraph id="par_idm1340753648" role="bascode" localize="false" 
xml-lang="en-US">    iNumber = Freefile</paragraph>
-<paragraph id="par_idm1340752416" role="bascode" localize="false" 
xml-lang="en-US">    Open aFile For Random As #iNumber Len=32</paragraph>
-<paragraph id="par_idm1340751152" role="bascode" localize="false" 
xml-lang="en-US">    Get #iNumber,2,sText</paragraph>
+<paragraph id="par_idm1340758576" role="bascode" localize="false">    Seek 
#iNumber,2</paragraph>
+<paragraph id="par_idm1340757344" role="bascode" localize="false">    Get 
#iNumber,,sText</paragraph>
+<paragraph id="par_idm1340756112" role="bascode" localize="false">    Print 
sText</paragraph>
+<paragraph id="par_idm1340754880" role="bascode" localize="false">    Close 
#iNumber</paragraph>
+<paragraph id="par_idm1340753648" role="bascode" localize="false">    iNumber 
= Freefile</paragraph>
+<paragraph id="par_idm1340752416" role="bascode" localize="false">    Open 
aFile For Random As #iNumber Len=32</paragraph>
+<paragraph id="par_idm1340751152" role="bascode" localize="false">    Get 
#iNumber,2,sText</paragraph>
 <paragraph id="par_id3155938" role="bascode" xml-lang="en-US">    Put 
#iNumber,,"This is a new text"</paragraph>
-<paragraph id="par_idm1340748176" role="bascode" localize="false" 
xml-lang="en-US">    Get #iNumber,1,sText</paragraph>
-<paragraph id="par_idm1340746928" role="bascode" localize="false" 
xml-lang="en-US">    Get #iNumber,2,sText</paragraph>
+<paragraph id="par_idm1340748176" role="bascode" localize="false">    Get 
#iNumber,1,sText</paragraph>
+<paragraph id="par_idm1340746928" role="bascode" localize="false">    Get 
#iNumber,2,sText</paragraph>
 <paragraph id="par_id3146916" role="bascode" xml-lang="en-US">    Put 
#iNumber,20,"This is the text in record 20"</paragraph>
-<paragraph id="par_idm1340743936" role="bascode" localize="false" 
xml-lang="en-US">    Print Lof(#iNumber)</paragraph>
-<paragraph id="par_idm1340742704" role="bascode" localize="false" 
xml-lang="en-US">    Close #iNumber</paragraph>
-<paragraph id="par_idm1340741472" role="bascode" localize="false" 
xml-lang="en-US">End Sub</paragraph>
+<paragraph id="par_idm1340743936" role="bascode" localize="false">    Print 
Lof(#iNumber)</paragraph>
+<paragraph id="par_idm1340742704" role="bascode" localize="false">    Close 
#iNumber</paragraph>
+<paragraph id="par_idm1340741472" role="bascode" localize="false">End 
Sub</paragraph>
 </bascode>
-</body>
+</section>
 
+<section id="relatedtopics" >
+   <embed href="text/sbasic/shared/03020103.xhp#Open_h1"/>
+   <embed href="text/sbasic/shared/03020204.xhp#Put_h1"/>
+   <embed href="text/sbasic/shared/03020101.xhp#Close_h1"/>
+</section>
+
+</body>
 </helpdocument>
\ No newline at end of file
diff --git a/source/text/sbasic/shared/03020204.xhp 
b/source/text/sbasic/shared/03020204.xhp
index 79a276ecd..754925637 100644
--- a/source/text/sbasic/shared/03020204.xhp
+++ b/source/text/sbasic/shared/03020204.xhp
@@ -26,60 +26,40 @@
 </meta>
 
 <body>
-
-
 <section id="put">
 <bookmark xml-lang="en-US" branch="index" id="bm_id3150360">
   <bookmark_value>Put statement</bookmark_value>
 </bookmark>
 
-
-<paragraph id="hd_id3150360" role="heading" level="1" xml-lang="en-US"><link 
href="text/sbasic/shared/03020204.xhp" name="Put Statement">Put 
Statement</link></paragraph>
+<h1 id="hd_id3150360"><variable id="Put_h1"><link 
href="text/sbasic/shared/03020204.xhp" name="Put Statement">Put 
Statement</link></variable></h1>
 <paragraph id="par_id3154909" role="paragraph" xml-lang="en-US">Writes a 
record to a relative file or a sequence of bytes to a binary file.</paragraph>
 </section>
 <paragraph id="par_id3156281" role="paragraph" xml-lang="en-US">See also: 
<link href="text/sbasic/shared/03020201.xhp" name="Get"><item 
type="literal">Get</item></link> statement</paragraph>
 
-<paragraph id="hd_id3125863" 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/Put_statement.svg" 
id="img_id4156296484514"><alt xml-lang="en-US" id="alt_id15152796484514">Put 
Statement diagram</alt></image>
+</paragraph>
 <bascode>
-<paragraph id="par_id3155132" role="bascode" xml-lang="en-US">Put [#] 
FileNumber As Integer, [position], Variable</paragraph>
+<paragraph id="par_id3155132" role="bascode" xml-lang="en-US">Put [#]fileNum, 
[recordNum|filePos], variable</paragraph>
 </bascode>
 
-<paragraph id="hd_id3153190" role="heading" level="2" 
xml-lang="en-US">Parameters:</paragraph>
-<paragraph id="par_id3146120" role="paragraph" xml-lang="en-US"> 
<emph>FileNumber:</emph> Any integer expression that defines the file that you 
want to write to.</paragraph>
-<paragraph id="par_id3155411" role="paragraph" xml-lang="en-US"> 
<emph>Position: </emph>For relative files (random access files), the number of 
the record that you want to write.</paragraph>
+<embed href="text/sbasic/shared/00000003.xhp#functparameters"/>
+<paragraph id="par_id3146120" role="paragraph" xml-lang="en-US"> 
<emph>fileNum:</emph> Any integer expression that defines the file that you 
want to write to.</paragraph>
+<paragraph id="par_id3155411" role="paragraph" xml-lang="en-US"> 
<emph>recordNum, filePos: </emph>For relative files (random access files), the 
number of the record that you want to write.</paragraph>
 <paragraph id="par_id3148576" role="paragraph" xml-lang="en-US">For binary 
files (binary access), the position of the byte in the file where you want to 
start writing.</paragraph>
-<paragraph id="par_id3153729" role="paragraph" xml-lang="en-US"> 
<emph>Variable:</emph> Name of the variable that you want to write to the 
file.</paragraph>
+<paragraph id="par_id3153729" role="paragraph" xml-lang="en-US"> 
<emph>variable:</emph> Name of the variable that you want to write to the 
file.</paragraph>
 <paragraph id="par_id3146974" role="paragraph" xml-lang="en-US">Note for 
relative files: If the contents of this variable does not match the length of 
the record that is specified in the <emph>Len</emph> clause of the 
<emph>Open</emph> statement, the space between the end of the newly written 
record and the next record is padded with existing data from the file that you 
are writing to.</paragraph>
 <paragraph id="par_id3155855" role="paragraph" xml-lang="en-US">Note for 
binary files: The contents of the variables are written to the specified 
position, and the file pointer is inserted directly after the last byte. No 
space is left between the records.</paragraph>
 
-<paragraph id="hd_id3154491" role="heading" level="2" 
xml-lang="en-US">Example:</paragraph>
-<bascode>
-<paragraph id="par_idm1341567184" role="bascode" localize="false" 
xml-lang="en-US">Sub ExampleRandomAccess</paragraph>
-<paragraph id="par_idm1341565952" role="bascode" localize="false" 
xml-lang="en-US">Dim iNumber As Integer</paragraph>
-<paragraph id="par_id3154729" role="bascode" xml-lang="en-US">Dim sText As 
Variant ' Must be a variant type</paragraph>
-<paragraph id="par_idm1341562976" role="bascode" localize="false" 
xml-lang="en-US">Dim aFile As String</paragraph>
-<paragraph id="par_idm1341561744" role="bascode" localize="false" 
xml-lang="en-US">    aFile = "c:\data.txt"</paragraph>
-<paragraph id="par_idm1341560496" role="bascode" localize="false" 
xml-lang="en-US">    iNumber = Freefile</paragraph>
-<paragraph id="par_idm1341559264" role="bascode" localize="false" 
xml-lang="en-US">    Open aFile For Random As #iNumber Len=32</paragraph>
-<paragraph id="par_id3156278" role="bascode" xml-lang="en-US">    Seek 
#iNumber,1 ' Position To start writing</paragraph>
-<paragraph id="par_id3153711" role="bascode" xml-lang="en-US">    Put 
#iNumber,, "This is the first line of text" ' Fill line with text</paragraph>
-<paragraph id="par_id3155446" role="bascode" xml-lang="en-US">    Put 
#iNumber,, "This is the second line of text"</paragraph>
-<paragraph id="par_id3154255" role="bascode" xml-lang="en-US">    Put 
#iNumber,, "This is the third line of text"</paragraph>
-<paragraph id="par_idm1341550944" role="bascode" localize="false" 
xml-lang="en-US">    Seek #iNumber,2</paragraph>
-<paragraph id="par_idm1341549712" role="bascode" localize="false" 
xml-lang="en-US">    Get #iNumber,,sText</paragraph>
-<paragraph id="par_idm1341548480" role="bascode" localize="false" 
xml-lang="en-US">    Print sText</paragraph>
-<paragraph id="par_idm1341547248" role="bascode" localize="false" 
xml-lang="en-US">    Close #iNumber</paragraph>
-<paragraph id="par_idm1341546016" role="bascode" localize="false" 
xml-lang="en-US">    iNumber = Freefile</paragraph>
-<paragraph id="par_idm1341544784" role="bascode" localize="false" 
xml-lang="en-US">    Open aFile For Random As #iNumber Len=32</paragraph>
-<paragraph id="par_idm1341543520" role="bascode" localize="false" 
xml-lang="en-US">    Get #iNumber,2,sText</paragraph>
-<paragraph id="par_id3150940" role="bascode" xml-lang="en-US">    Put 
#iNumber,,"This is new text"</paragraph>
-<paragraph id="par_idm1341540544" role="bascode" localize="false" 
xml-lang="en-US">    Get #iNumber,1,sText</paragraph>
-<paragraph id="par_idm1341539296" role="bascode" localize="false" 
xml-lang="en-US">    Get #iNumber,2,sText</paragraph>
-<paragraph id="par_id3159102" role="bascode" xml-lang="en-US">    Put 
#iNumber,20,"This is the text in record 20"</paragraph>
-<paragraph id="par_idm1341536304" role="bascode" localize="false" 
xml-lang="en-US">    Print Lof(#iNumber)</paragraph>
-<paragraph id="par_idm1341535072" role="bascode" localize="false" 
xml-lang="en-US">    Close #iNumber</paragraph>
-<paragraph id="par_idm1341533840" role="bascode" localize="false" 
xml-lang="en-US">End Sub</paragraph>
-</bascode>
-</body>
+<embed href="text/sbasic/shared/00000003.xhp#functexample"/>
+<embed href="text/sbasic/shared/03020201.xhp#ExampleRandomAccess"/>
+
+<section id="relatedtopics" >
+   <embed href="text/sbasic/shared/03020101.xhp#Close_h1"/>
+   <embed href="text/sbasic/shared/03020201.xhp#Get_h1"/>
+   <embed href="text/sbasic/shared/03020103.xhp#Open_h1"/>
+</section>
 
+</body>
 </helpdocument>
\ No newline at end of file
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to