summaryrefslogtreecommitdiff
path: root/source/text/sbasic/shared/03101100.xhp
diff options
context:
space:
mode:
authorLaurent Balland-Poirier <laurent.balland-poirier@laposte.net>2017-05-17 22:25:57 +0200
committerOlivier Hallot <olivier.hallot@edx.srv.br>2017-05-19 16:31:32 +0200
commitfc04019be5ce20fe8acd95e1cc41ba099dd51cb0 (patch)
tree75746fd2131484802324f207e1bb3e5301d1c5c9 /source/text/sbasic/shared/03101100.xhp
parent3d5e0e547daaed4c5587d403877a04916cf23eb9 (diff)
Basic: merge identical def and example Defxxx
Change-Id: I64abb89958c823d636c402ad4fee1f008742b491 Reviewed-on: https://gerrit.libreoffice.org/37789 Reviewed-by: Olivier Hallot <olivier.hallot@edx.srv.br> Tested-by: Olivier Hallot <olivier.hallot@edx.srv.br>
Diffstat (limited to 'source/text/sbasic/shared/03101100.xhp')
-rw-r--r--source/text/sbasic/shared/03101100.xhp10
1 files changed, 7 insertions, 3 deletions
diff --git a/source/text/sbasic/shared/03101100.xhp b/source/text/sbasic/shared/03101100.xhp
index 4559a5ed82..75d19629b4 100644
--- a/source/text/sbasic/shared/03101100.xhp
+++ b/source/text/sbasic/shared/03101100.xhp
@@ -27,17 +27,16 @@
<body>
-
<section id="defbool">
<bookmark xml-lang="en-US" branch="index" id="bm_id3145759">
<bookmark_value>DefBool statement</bookmark_value>
</bookmark>
-
<paragraph id="hd_id3145759" role="heading" level="1" xml-lang="en-US"><link href="text/sbasic/shared/03101100.xhp" name="DefBool Statement [Runtime]">DefBool Statement [Runtime]</link></paragraph>
<paragraph id="par_id3153089" role="paragraph" xml-lang="en-US">If no type-declaration character or keyword is specified, the DefBool statement sets the default data type for variables, according to a letter range.</paragraph>
</section>
+<section id="PrefixDefCommon">
<paragraph id="hd_id3149495" role="heading" level="2" xml-lang="en-US">Syntax:</paragraph>
<bascode>
<paragraph id="par_id3150682" role="bascode" xml-lang="en-US">Defxxx Characterrange1[, Characterrange2[,...]]</paragraph>
@@ -47,8 +46,10 @@
<paragraph id="par_id3147226" role="paragraph" xml-lang="en-US"> <emph>Characterrange:</emph> Letters that specify the range of variables that you want to set the default data type for.</paragraph>
<paragraph id="par_id3149178" role="paragraph" xml-lang="en-US"> <emph>xxx:</emph> Keyword that defines the default variable type:</paragraph>
<paragraph id="par_id3150669" role="paragraph" xml-lang="en-US"> <emph>Keyword: </emph>Default variable type</paragraph>
+</section>
<paragraph id="par_id3149233" role="paragraph" xml-lang="en-US"> <emph>DefBool:</emph> Boolean</paragraph>
+<section id="ExamplePrefixDefCommon">
<paragraph id="hd_id3149762" role="heading" level="2" xml-lang="en-US">Example:</paragraph>
<bascode>
<paragraph id="par_id3156152" role="bascode" xml-lang="en-US">' Prefix definition for variable types:</paragraph>
@@ -59,10 +60,13 @@
<paragraph id="par_idm1341568192" role="bascode" localize="false" xml-lang="en-US">DefLng l</paragraph>
<paragraph id="par_idm1341566960" role="bascode" localize="false" xml-lang="en-US">DefObj o</paragraph>
<paragraph id="par_idm1341565728" role="bascode" localize="false" xml-lang="en-US">DefVar v</paragraph>
+</bascode>
+</section>
+<bascode>
<paragraph id="par_idm1341564496" role="bascode" localize="false" xml-lang="en-US">Sub ExampleDefBool</paragraph>
<paragraph id="par_id3151381" role="bascode" xml-lang="en-US"> bOK=TRUE ' bOK is an implicit boolean variable</paragraph>
<paragraph id="par_idm1341561520" role="bascode" localize="false" xml-lang="en-US">End Sub</paragraph>
</bascode>
</body>
-</helpdocument> \ No newline at end of file
+</helpdocument>