diff options
author | Andras Timar <atimar@suse.com> | 2013-07-19 11:24:57 +0200 |
---|---|---|
committer | Andras Timar <atimar@suse.com> | 2013-07-19 11:24:57 +0200 |
commit | c7362eccbd333bcfc919bc981a4c10327fdb6c8d (patch) | |
tree | ccb0462d774cadcc429090abcdfc57e7561a6c12 /source/text/sbasic | |
parent | 628ca143fe1119256040772bc573ae6439367f0b (diff) |
<switch>/<case>/<default> are unhandled elements within <bascode>
Change-Id: I6c04583bb0259806d1c5ffd2c1425bacaed21583
Diffstat (limited to 'source/text/sbasic')
-rw-r--r-- | source/text/sbasic/shared/03010103.xhp | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/source/text/sbasic/shared/03010103.xhp b/source/text/sbasic/shared/03010103.xhp index c4987b6a4a..bc304250d5 100644 --- a/source/text/sbasic/shared/03010103.xhp +++ b/source/text/sbasic/shared/03010103.xhp @@ -53,22 +53,31 @@ <paragraph role="paragraph" id="par_id3154011" xml-lang="en-US" l10n="U" oldref="11">If the expression to be printed exceeds a certain length, the display will automatically wrap to the next line.</paragraph> <paragraph role="note" id="par_id3146969" xml-lang="en-US" l10n="U" oldref="12">You can insert the Tab function, enclosed by semicolons, between arguments to indent the output to a specific position, or you can use the <emph>Spc</emph> function to insert a specified number of spaces.</paragraph> <paragraph role="heading" id="hd_id3146912" xml-lang="en-US" level="2" l10n="U" oldref="13">Example:</paragraph> +<switch select="sys"> +<case select="WIN"> <bascode> <paragraph role="bascode" localize="false" xml-lang="en-US">Sub ExamplePrint</paragraph> <paragraph role="bascode" localize="false" xml-lang="en-US"> Print "ABC"</paragraph> <paragraph role="bascode" localize="false" xml-lang="en-US"> Print "ABC","123"</paragraph> <paragraph role="bascode" localize="false" xml-lang="en-US"> i = FreeFile()</paragraph> -<switch select="sys"> -<case select="WIN"> <paragraph role="bascode" localize="false" xml-lang="en-US"> Open "C:\Temp.txt" For Output As i</paragraph> +<paragraph role="bascode" localize="false" xml-lang="en-US"> Print #i, "ABC"</paragraph> +<paragraph role="bascode" localize="false" xml-lang="en-US"> Close #i</paragraph> +<paragraph role="bascode" localize="false" xml-lang="en-US">End Sub</paragraph> +</bascode> </case> <default> +<bascode> +<paragraph role="bascode" localize="false" xml-lang="en-US">Sub ExamplePrint</paragraph> +<paragraph role="bascode" localize="false" xml-lang="en-US"> Print "ABC"</paragraph> +<paragraph role="bascode" localize="false" xml-lang="en-US"> Print "ABC","123"</paragraph> +<paragraph role="bascode" localize="false" xml-lang="en-US"> i = FreeFile()</paragraph> <paragraph role="bascode" localize="false" xml-lang="en-US"> Open "~/temp.txt" For Output As i</paragraph> -</default> -</switch> <paragraph role="bascode" localize="false" xml-lang="en-US"> Print #i, "ABC"</paragraph> <paragraph role="bascode" localize="false" xml-lang="en-US"> Close #i</paragraph> <paragraph role="bascode" localize="false" xml-lang="en-US">End Sub</paragraph> </bascode> +</default> +</switch> </body> </helpdocument> |