diff options
author | Laurent Balland-Poirier <laurent.balland-poirier@laposte.net> | 2017-05-17 22:25:57 +0200 |
---|---|---|
committer | Olivier Hallot <olivier.hallot@edx.srv.br> | 2017-05-19 16:31:58 +0200 |
commit | 06f78d9927f3d8bd56583fce3181eae19568e3e0 (patch) | |
tree | 75746fd2131484802324f207e1bb3e5301d1c5c9 | |
parent | 3cb6c49b52541dd5f0c650d79a201a69415d8054 (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>
(cherry picked from commit fc04019be5ce20fe8acd95e1cc41ba099dd51cb0)
Reviewed-on: https://gerrit.libreoffice.org/37828
-rw-r--r-- | source/text/sbasic/shared/03101100.xhp | 10 | ||||
-rw-r--r-- | source/text/sbasic/shared/03101110.xhp | 27 | ||||
-rw-r--r-- | source/text/sbasic/shared/03101120.xhp | 24 | ||||
-rw-r--r-- | source/text/sbasic/shared/03101130.xhp | 24 | ||||
-rw-r--r-- | source/text/sbasic/shared/03101140.xhp | 24 | ||||
-rw-r--r-- | source/text/sbasic/shared/03101300.xhp | 24 | ||||
-rw-r--r-- | source/text/sbasic/shared/03101400.xhp | 24 | ||||
-rw-r--r-- | source/text/sbasic/shared/03101500.xhp | 24 | ||||
-rw-r--r-- | source/text/sbasic/shared/03101600.xhp | 24 | ||||
-rw-r--r-- | source/text/sbasic/shared/03101700.xhp | 27 |
10 files changed, 38 insertions, 194 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> diff --git a/source/text/sbasic/shared/03101110.xhp b/source/text/sbasic/shared/03101110.xhp index 71248ee41f..184787d8a8 100644 --- a/source/text/sbasic/shared/03101110.xhp +++ b/source/text/sbasic/shared/03101110.xhp @@ -35,34 +35,17 @@ <paragraph role="heading" id="par_idN1057D" xml-lang="en-US" level="1"><link href="text/sbasic/shared/03101110.xhp">DefCur Statement [Runtime]</link></paragraph> <paragraph role="paragraph" id="par_idN1058D" xml-lang="en-US">If no type-declaration character or keyword is specified, the DefCur statement sets the default variable type, according to a letter range.</paragraph> </section> -<paragraph role="heading" id="par_idN10590" xml-lang="en-US" level="2">Syntax:</paragraph> -<bascode> -<paragraph role="bascode" id="par_idN10594" xml-lang="en-US">Defxxx Characterrange1[, Characterrange2[,...]]</paragraph> -</bascode> -<paragraph role="heading" id="par_idN10597" xml-lang="en-US" level="2">Parameters:</paragraph> -<paragraph role="paragraph" id="par_idN1059B" xml-lang="en-US"> -<emph>Characterrange:</emph> Letters that specify the range of variables that you want to set a default data type for.</paragraph> -<paragraph role="paragraph" id="par_idN105A2" xml-lang="en-US"> -<emph>xxx:</emph> Keyword that defines the default variable type:</paragraph> -<paragraph role="paragraph" id="par_idN105A9" xml-lang="en-US"> -<emph>Keyword:</emph> Default variable type</paragraph> + +<embed href="text/sbasic/shared/03101100.xhp#PrefixDefCommon"/> <paragraph role="paragraph" id="par_idN105B0" xml-lang="en-US"> <emph>DefCur:</emph> Currency</paragraph> -<paragraph role="heading" id="par_idN105B7" xml-lang="en-US" level="2">Example:</paragraph> + +<embed href="text/sbasic/shared/03101100.xhp#ExamplePrefixDefCommon"/> <bascode> -<paragraph role="bascode" id="par_idN105BB" xml-lang="en-US">REM Prefix definitions for variable types:</paragraph> -<paragraph role="bascode" id="par_idN105BE" xml-lang="en-US" localize="false">DefBool b</paragraph> -<paragraph role="bascode" id="par_idN105C1" xml-lang="en-US" localize="false">DefDate t</paragraph> -<paragraph role="bascode" id="par_idN105C4" xml-lang="en-US" localize="false">DefDbL d</paragraph> -<paragraph role="bascode" id="par_idN105C7" xml-lang="en-US" localize="false">DefInt i</paragraph> -<paragraph role="bascode" id="par_idN105CA" xml-lang="en-US" localize="false">DefLng l</paragraph> -<paragraph role="bascode" id="par_idN105CD" xml-lang="en-US" localize="false">DefObj o</paragraph> -<paragraph role="bascode" id="par_idN105D0" xml-lang="en-US" localize="false">DefVar v</paragraph> <paragraph role="bascode" id="par_idN105D3" xml-lang="en-US" localize="false">DefCur c</paragraph> <paragraph role="bascode" id="par_idN105D6" xml-lang="en-US" localize="false">Sub ExampleDefCur</paragraph> -<paragraph role="bascode" id="par_idN105D9" xml-lang="en-US"> cCur=Currency REM cCur is an implicit currency variable</paragraph> +<paragraph role="bascode" id="par_idN105D9" xml-lang="en-US"> cCur=Currency ' cCur is an implicit currency variable</paragraph> <paragraph role="bascode" id="par_idN105DC" xml-lang="en-US" localize="false">End Sub</paragraph> </bascode> </body> </helpdocument> - diff --git a/source/text/sbasic/shared/03101120.xhp b/source/text/sbasic/shared/03101120.xhp index fcaf086f82..cc1060d71b 100644 --- a/source/text/sbasic/shared/03101120.xhp +++ b/source/text/sbasic/shared/03101120.xhp @@ -27,38 +27,20 @@ <body> - <section id="deferr"> <bookmark xml-lang="en-US" branch="index" id="bm_id8177739"> <bookmark_value>DefErr statement</bookmark_value> </bookmark> - <paragraph id="par_idN1057D" role="heading" level="1" xml-lang="en-US"><link href="text/sbasic/shared/03101120.xhp">DefErr Statement [Runtime]</link></paragraph> <paragraph id="par_idN1058D" role="paragraph" xml-lang="en-US">If no type-declaration character or keyword is specified, the DefErr statement sets the default variable type, according to a letter range.</paragraph> </section> -<paragraph id="par_idN10590" role="heading" level="2" xml-lang="en-US">Syntax:</paragraph> -<bascode> -<paragraph id="par_idN10594" role="bascode" xml-lang="en-US">Defxxx Characterrange1[, Characterrange2[,...]]</paragraph> -</bascode> - -<paragraph id="par_idN10597" role="heading" level="2" xml-lang="en-US">Parameters:</paragraph> -<paragraph id="par_idN1059B" role="paragraph" xml-lang="en-US"> <emph>Characterrange:</emph> Letters that specify the range of variables that you want to set a default data type for.</paragraph> -<paragraph id="par_idN105A2" role="paragraph" xml-lang="en-US"> <emph>xxx:</emph> Keyword that defines the default variable type:</paragraph> -<paragraph id="par_idN105A9" role="paragraph" xml-lang="en-US"> <emph>Keyword:</emph> Default variable type</paragraph> +<embed href="text/sbasic/shared/03101100.xhp#PrefixDefCommon"/> <paragraph id="par_idN105B0" role="paragraph" xml-lang="en-US"> <emph>DefErr:</emph> Error</paragraph> -<paragraph id="par_idN105B7" role="heading" level="2" xml-lang="en-US">Example:</paragraph> +<embed href="text/sbasic/shared/03101100.xhp#ExamplePrefixDefCommon"/> <bascode> -<paragraph id="par_idN105BB" role="bascode" xml-lang="en-US">' Prefix definitions for variable types:</paragraph> -<paragraph id="par_idm1340924192" role="bascode" localize="false" xml-lang="en-US">DefBool b</paragraph> -<paragraph id="par_idm1340922960" role="bascode" localize="false" xml-lang="en-US">DefDate t</paragraph> -<paragraph id="par_idm1340921728" role="bascode" localize="false" xml-lang="en-US">DefDbl d</paragraph> -<paragraph id="par_idm1340920496" role="bascode" localize="false" xml-lang="en-US">DefInt i</paragraph> -<paragraph id="par_idm1340919264" role="bascode" localize="false" xml-lang="en-US">DefLng l</paragraph> -<paragraph id="par_idm1340918032" role="bascode" localize="false" xml-lang="en-US">DefObj o</paragraph> -<paragraph id="par_idm1340916800" role="bascode" localize="false" xml-lang="en-US">DefVar v</paragraph> <paragraph id="par_idm1340915568" role="bascode" localize="false" xml-lang="en-US">DefErr e</paragraph> <paragraph id="par_idm1340914336" role="bascode" localize="false" xml-lang="en-US">Sub ExampleDefErr</paragraph> <paragraph id="par_idN105D9" role="bascode" xml-lang="en-US"> eErr=Error ' eErr is an implicit error variable</paragraph> @@ -66,4 +48,4 @@ </bascode> </body> -</helpdocument>
\ No newline at end of file +</helpdocument> diff --git a/source/text/sbasic/shared/03101130.xhp b/source/text/sbasic/shared/03101130.xhp index 15f52373a6..3e8991e8a1 100644 --- a/source/text/sbasic/shared/03101130.xhp +++ b/source/text/sbasic/shared/03101130.xhp @@ -27,38 +27,20 @@ <body> - <section id="defsng"> <bookmark xml-lang="en-US" branch="index" id="bm_id2445142"> <bookmark_value>DefSng statement</bookmark_value> </bookmark> - <paragraph id="par_idN10577" role="heading" level="1" xml-lang="en-US"><link href="text/sbasic/shared/03101130.xhp">DefSng Statement [Runtime]</link></paragraph> <paragraph id="par_idN10587" role="paragraph" xml-lang="en-US">If no type-declaration character or keyword is specified, the DefSng statement sets the default variable type, according to a letter range.</paragraph> </section> -<paragraph id="par_idN1058A" role="heading" level="2" xml-lang="en-US">Syntax:</paragraph> -<bascode> -<paragraph id="par_idN1058E" role="bascode" xml-lang="en-US">Defxxx Characterrange1[, Characterrange2[,...]]</paragraph> -</bascode> - -<paragraph id="par_idN10591" role="heading" level="2" xml-lang="en-US">Parameters:</paragraph> -<paragraph id="par_idN10595" role="paragraph" xml-lang="en-US"> <emph>Characterrange:</emph> Letters that specify the range of variables that you want to set a default data type for.</paragraph> -<paragraph id="par_idN1059C" role="paragraph" xml-lang="en-US"> <emph>xxx:</emph> Keyword that defines the default variable type:</paragraph> -<paragraph id="par_idN105A3" role="paragraph" xml-lang="en-US"> <emph>Keyword:</emph> Default variable type</paragraph> +<embed href="text/sbasic/shared/03101100.xhp#PrefixDefCommon"/> <paragraph id="par_idN105AA" role="paragraph" xml-lang="en-US"> <emph>DefSng:</emph> Single</paragraph> -<paragraph id="par_idN105B1" role="heading" level="2" xml-lang="en-US">Example:</paragraph> +<embed href="text/sbasic/shared/03101100.xhp#ExamplePrefixDefCommon"/> <bascode> -<paragraph id="par_idN105B5" role="bascode" xml-lang="en-US">' Prefix definitions for variable types:</paragraph> -<paragraph id="par_idm1341242448" role="bascode" localize="false" xml-lang="en-US">DefBool b</paragraph> -<paragraph id="par_idm1341241216" role="bascode" localize="false" xml-lang="en-US">DefDate t</paragraph> -<paragraph id="par_idm1341239984" role="bascode" localize="false" xml-lang="en-US">DefDbl d</paragraph> -<paragraph id="par_idm1341238752" role="bascode" localize="false" xml-lang="en-US">DefInt i</paragraph> -<paragraph id="par_idm1341237520" role="bascode" localize="false" xml-lang="en-US">DefLng l</paragraph> -<paragraph id="par_idm1341236288" role="bascode" localize="false" xml-lang="en-US">DefObj o</paragraph> -<paragraph id="par_idm1341235056" role="bascode" localize="false" xml-lang="en-US">DefVar v</paragraph> <paragraph id="par_idm1341233824" role="bascode" localize="false" xml-lang="en-US">DefSng s</paragraph> <paragraph id="par_idm1341232592" role="bascode" localize="false" xml-lang="en-US">Sub ExampleDefSng</paragraph> <paragraph id="par_idN105D3" role="bascode" xml-lang="en-US"> sSng=Single ' sSng is an implicit single variable</paragraph> @@ -66,4 +48,4 @@ </bascode> </body> -</helpdocument>
\ No newline at end of file +</helpdocument> diff --git a/source/text/sbasic/shared/03101140.xhp b/source/text/sbasic/shared/03101140.xhp index df1548d683..508def62f2 100644 --- a/source/text/sbasic/shared/03101140.xhp +++ b/source/text/sbasic/shared/03101140.xhp @@ -27,38 +27,20 @@ <body> - <section id="defstr"> <bookmark xml-lang="en-US" branch="index" id="bm_id6161381"> <bookmark_value>DefStr statement</bookmark_value> </bookmark> - <paragraph id="par_idN10577" role="heading" level="1" xml-lang="en-US"><link href="text/sbasic/shared/03101140.xhp">DefStr Statement [Runtime]</link></paragraph> <paragraph id="par_idN10587" role="paragraph" xml-lang="en-US">If no type-declaration character or keyword is specified, the DefStr statement sets the default variable type, according to a letter range.</paragraph> </section> -<paragraph id="par_idN1058A" role="heading" level="2" xml-lang="en-US">Syntax:</paragraph> -<bascode> -<paragraph id="par_idN1058E" role="bascode" xml-lang="en-US">Defxxx Characterrange1[, Characterrange2[,...]]</paragraph> -</bascode> - -<paragraph id="par_idN10591" role="heading" level="2" xml-lang="en-US">Parameters:</paragraph> -<paragraph id="par_idN10595" role="paragraph" xml-lang="en-US"> <emph>Characterrange:</emph> Letters that specify the range of variables that you want to set a default data type for.</paragraph> -<paragraph id="par_idN1059C" role="paragraph" xml-lang="en-US"> <emph>xxx:</emph> Keyword that defines the default variable type:</paragraph> -<paragraph id="par_idN105A3" role="paragraph" xml-lang="en-US"> <emph>Keyword:</emph> Default variable type</paragraph> +<embed href="text/sbasic/shared/03101100.xhp#PrefixDefCommon"/> <paragraph id="par_idN105AA" role="paragraph" xml-lang="en-US"> <emph>DefStr:</emph> String</paragraph> -<paragraph id="par_idN105B1" role="heading" level="2" xml-lang="en-US">Example:</paragraph> +<embed href="text/sbasic/shared/03101100.xhp#ExamplePrefixDefCommon"/> <bascode> -<paragraph id="par_idN105B5" role="bascode" xml-lang="en-US">' Prefix definitions for variable types:</paragraph> -<paragraph id="par_idm1340836544" role="bascode" localize="false" xml-lang="en-US">DefBool b</paragraph> -<paragraph id="par_idm1340835312" role="bascode" localize="false" xml-lang="en-US">DefDate t</paragraph> -<paragraph id="par_idm1340834080" role="bascode" localize="false" xml-lang="en-US">DefDbl d</paragraph> -<paragraph id="par_idm1340832848" role="bascode" localize="false" xml-lang="en-US">DefInt i</paragraph> -<paragraph id="par_idm1340831616" role="bascode" localize="false" xml-lang="en-US">DefLng l</paragraph> -<paragraph id="par_idm1340830384" role="bascode" localize="false" xml-lang="en-US">DefObj o</paragraph> -<paragraph id="par_idm1340829152" role="bascode" localize="false" xml-lang="en-US">DefVar v</paragraph> <paragraph id="par_idm1340827920" role="bascode" localize="false" xml-lang="en-US">DefStr s</paragraph> <paragraph id="par_idm1340826688" role="bascode" localize="false" xml-lang="en-US">Sub ExampleDefStr</paragraph> <paragraph id="par_idN105D3" role="bascode" xml-lang="en-US"> sStr=String ' sStr is an implicit string variable</paragraph> @@ -66,4 +48,4 @@ </bascode> </body> -</helpdocument>
\ No newline at end of file +</helpdocument> diff --git a/source/text/sbasic/shared/03101300.xhp b/source/text/sbasic/shared/03101300.xhp index 72eb853a04..409ff581f4 100644 --- a/source/text/sbasic/shared/03101300.xhp +++ b/source/text/sbasic/shared/03101300.xhp @@ -27,42 +27,24 @@ <body> - <section id="defdate"> <bookmark xml-lang="en-US" branch="index" id="bm_id3150504"> <bookmark_value>DefDate statement</bookmark_value> </bookmark> - <paragraph id="hd_id3150504" role="heading" level="1" xml-lang="en-US"><link href="text/sbasic/shared/03101300.xhp" name="DefDate Statement [Runtime]">DefDate Statement [Runtime]</link></paragraph> <paragraph id="par_id3145069" role="paragraph" xml-lang="en-US">If no type-declaration character or keyword is specified, the DefDate statement sets the default variable type, according to a letter range.</paragraph> </section> -<paragraph id="hd_id3154758" role="heading" level="2" xml-lang="en-US">Syntax:</paragraph> -<bascode> -<paragraph id="par_id3148664" role="bascode" xml-lang="en-US">Defxxx Characterrange1[, Characterrange2[,...]]</paragraph> -</bascode> - -<paragraph id="hd_id3150541" role="heading" level="2" xml-lang="en-US">Parameters:</paragraph> -<paragraph id="par_id3156709" role="paragraph" xml-lang="en-US"> <emph>Characterrange:</emph> Letters that specify the range of variables that you want to set a default data type for.</paragraph> -<paragraph id="par_id3150869" role="paragraph" xml-lang="en-US"> <emph>xxx:</emph> Keyword that defines the default variable type:</paragraph> -<paragraph id="par_id3145171" role="paragraph" xml-lang="en-US"> <emph>Keyword:</emph> Default variable type</paragraph> +<embed href="text/sbasic/shared/03101100.xhp#PrefixDefCommon"/> <paragraph id="par_id3150767" role="paragraph" xml-lang="en-US"> <emph>DefDate:</emph> Date</paragraph> -<paragraph id="hd_id3153768" role="heading" level="2" xml-lang="en-US">Example:</paragraph> +<embed href="text/sbasic/shared/03101100.xhp#ExamplePrefixDefCommon"/> <bascode> -<paragraph id="par_id3145785" role="bascode" xml-lang="en-US">' Prefix definitions for variable types:</paragraph> -<paragraph id="par_idm1341306032" role="bascode" localize="false" xml-lang="en-US">DefBool b</paragraph> -<paragraph id="par_idm1341304800" role="bascode" localize="false" xml-lang="en-US">DefDate t</paragraph> -<paragraph id="par_idm1341303568" role="bascode" localize="false" xml-lang="en-US">DefDbl d</paragraph> -<paragraph id="par_idm1341302336" role="bascode" localize="false" xml-lang="en-US">DefInt i</paragraph> -<paragraph id="par_idm1341301104" role="bascode" localize="false" xml-lang="en-US">DefLng l</paragraph> -<paragraph id="par_idm1341299872" role="bascode" localize="false" xml-lang="en-US">DefObj o</paragraph> -<paragraph id="par_idm1341298640" role="bascode" localize="false" xml-lang="en-US">DefVar v</paragraph> <paragraph id="par_idm1341297408" role="bascode" localize="false" xml-lang="en-US">Sub ExampleDefDate</paragraph> <paragraph id="par_id3152462" role="bascode" xml-lang="en-US"> tDate=Date ' tDate is an implicit date variable</paragraph> <paragraph id="par_idm1341619984" role="bascode" localize="false" xml-lang="en-US">End Sub</paragraph> </bascode> </body> -</helpdocument>
\ No newline at end of file +</helpdocument> diff --git a/source/text/sbasic/shared/03101400.xhp b/source/text/sbasic/shared/03101400.xhp index 8976d13479..f033c5f60d 100644 --- a/source/text/sbasic/shared/03101400.xhp +++ b/source/text/sbasic/shared/03101400.xhp @@ -27,42 +27,24 @@ <body> - <section id="defdbl"> <bookmark xml-lang="en-US" branch="index" id="bm_id3147242"> <bookmark_value>DefDbl statement</bookmark_value> </bookmark> - <paragraph id="hd_id3147242" role="heading" level="1" xml-lang="en-US"><link href="text/sbasic/shared/03101400.xhp" name="DefDbl Statement [Runtime]">DefDbl Statement [Runtime]</link></paragraph> <paragraph id="par_id3153126" role="paragraph" xml-lang="en-US">Sets the default variable type, according to a letter range, if no type-declaration character or keyword is specified.</paragraph> </section> -<paragraph id="hd_id3155420" role="heading" level="2" xml-lang="en-US">Syntax:</paragraph> -<bascode> -<paragraph id="par_id3147530" role="bascode" xml-lang="en-US">Defxxx Characterrange1[, Characterrange2[,...]]</paragraph> -</bascode> - -<paragraph id="hd_id3145069" role="heading" level="2" xml-lang="en-US">Parameters:</paragraph> -<paragraph id="par_id3147560" 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_id3150791" role="paragraph" xml-lang="en-US"> <emph>xxx:</emph> Keyword that defines the default variable type:</paragraph> -<paragraph id="par_id3151210" role="paragraph" xml-lang="en-US"> <emph>Keyword:</emph> Default variable type</paragraph> +<embed href="text/sbasic/shared/03101100.xhp#PrefixDefCommon"/> <paragraph id="par_id3154123" role="paragraph" xml-lang="en-US"> <emph>DefDbl:</emph> Double</paragraph> -<paragraph id="hd_id3153192" role="heading" level="2" xml-lang="en-US">Example:</paragraph> +<embed href="text/sbasic/shared/03101100.xhp#ExamplePrefixDefCommon"/> <bascode> -<paragraph id="par_id3156281" role="bascode" xml-lang="en-US">' Prefix definitions for variable types:</paragraph> -<paragraph id="par_idm1341574480" role="bascode" localize="false" xml-lang="en-US">DefBool b</paragraph> -<paragraph id="par_idm1341573248" role="bascode" localize="false" xml-lang="en-US">DefDate t</paragraph> -<paragraph id="par_idm1341572016" role="bascode" localize="false" xml-lang="en-US">DefDbl d</paragraph> -<paragraph id="par_idm1341570784" role="bascode" localize="false" xml-lang="en-US">DefInt i</paragraph> -<paragraph id="par_idm1341569552" role="bascode" localize="false" xml-lang="en-US">DefLng l</paragraph> -<paragraph id="par_idm1341568320" role="bascode" localize="false" xml-lang="en-US">DefObj o</paragraph> -<paragraph id="par_idm1341567088" role="bascode" localize="false" xml-lang="en-US">DefVar v</paragraph> <paragraph id="par_idm1341565856" role="bascode" localize="false" xml-lang="en-US">Sub ExampleDefDBL</paragraph> <paragraph id="par_id3153144" role="bascode" xml-lang="en-US"> dValue=1.23e43 ' dValue is an implicit double variable type</paragraph> <paragraph id="par_idm1341562864" role="bascode" localize="false" xml-lang="en-US">End Sub</paragraph> </bascode> </body> -</helpdocument>
\ No newline at end of file +</helpdocument> diff --git a/source/text/sbasic/shared/03101500.xhp b/source/text/sbasic/shared/03101500.xhp index 557f1235a0..edbc54aefc 100644 --- a/source/text/sbasic/shared/03101500.xhp +++ b/source/text/sbasic/shared/03101500.xhp @@ -27,42 +27,24 @@ <body> - <section id="defint"> <bookmark xml-lang="en-US" branch="index" id="bm_id3149811"> <bookmark_value>DefInt statement</bookmark_value> </bookmark> - <paragraph id="hd_id3149811" role="heading" level="1" xml-lang="en-US"><link href="text/sbasic/shared/03101500.xhp" name="DefInt Statement [Runtime]">DefInt Statement [Runtime]</link></paragraph> <paragraph id="par_id3149762" role="paragraph" xml-lang="en-US">Sets the default variable type, according to a letter range, if no type-declaration character or keyword is specified.</paragraph> </section> -<paragraph id="hd_id3148686" role="heading" level="2" xml-lang="en-US">Syntax:</paragraph> -<bascode> -<paragraph id="par_id3156023" role="bascode" xml-lang="en-US">Defxxx Characterrange1[, Characterrange2[,...]]</paragraph> -</bascode> - -<paragraph id="hd_id3156344" role="heading" level="2" xml-lang="en-US">Parameters:</paragraph> -<paragraph id="par_id3147560" role="paragraph" xml-lang="en-US"> <emph>Characterrange:</emph> Letters that specify the range of variables that you want to set a default data type for.</paragraph> -<paragraph id="par_id3150398" role="paragraph" xml-lang="en-US"> <emph>xxx:</emph> Keyword that defines the default variable type:</paragraph> -<paragraph id="par_id3154365" role="paragraph" xml-lang="en-US"> <emph>Keyword:</emph> Default variable type</paragraph> +<embed href="text/sbasic/shared/03101100.xhp#PrefixDefCommon"/> <paragraph id="par_id3125863" role="paragraph" xml-lang="en-US"> <emph>DefInt:</emph> Integer</paragraph> -<paragraph id="hd_id3154123" role="heading" level="2" xml-lang="en-US">Example:</paragraph> +<embed href="text/sbasic/shared/03101100.xhp#ExamplePrefixDefCommon"/> <bascode> -<paragraph id="par_id3151042" role="bascode" xml-lang="en-US">' Prefix definitions for variable types</paragraph> -<paragraph id="par_idm1341573152" role="bascode" localize="false" xml-lang="en-US">DefBool b</paragraph> -<paragraph id="par_idm1341571920" role="bascode" localize="false" xml-lang="en-US">DefDate t</paragraph> -<paragraph id="par_idm1341570688" role="bascode" localize="false" xml-lang="en-US">DefDbl d</paragraph> -<paragraph id="par_idm1341569456" role="bascode" localize="false" xml-lang="en-US">DefInt i</paragraph> -<paragraph id="par_idm1341568224" role="bascode" localize="false" xml-lang="en-US">DefLng l</paragraph> -<paragraph id="par_idm1341566992" role="bascode" localize="false" xml-lang="en-US">DefObj o</paragraph> -<paragraph id="par_idm1341565760" role="bascode" localize="false" xml-lang="en-US">DefVar v</paragraph> <paragraph id="par_idm1341564528" role="bascode" localize="false" xml-lang="en-US">Sub ExampleDefInt</paragraph> <paragraph id="par_id3153728" role="bascode" xml-lang="en-US"> iCount=200 ' iCount is an implicit integer variable</paragraph> <paragraph id="par_idm1341561552" role="bascode" localize="false" xml-lang="en-US">End Sub</paragraph> </bascode> </body> -</helpdocument>
\ No newline at end of file +</helpdocument> diff --git a/source/text/sbasic/shared/03101600.xhp b/source/text/sbasic/shared/03101600.xhp index 4e3dec3f58..c75bb56351 100644 --- a/source/text/sbasic/shared/03101600.xhp +++ b/source/text/sbasic/shared/03101600.xhp @@ -27,42 +27,24 @@ <body> - <section id="deflng"> <bookmark xml-lang="en-US" branch="index" id="bm_id3148538"> <bookmark_value>DefLng statement</bookmark_value> </bookmark> - <paragraph id="hd_id3148538" role="heading" level="1" xml-lang="en-US"><link href="text/sbasic/shared/03101600.xhp" name="DefLng Statement [Runtime]">DefLng Statement [Runtime]</link></paragraph> <paragraph id="par_id3149514" role="paragraph" xml-lang="en-US">Sets the default variable type, according to a letter range, if no type-declaration character or keyword is specified.</paragraph> </section> -<paragraph id="hd_id3150504" role="heading" level="2" xml-lang="en-US">Syntax:</paragraph> -<bascode> -<paragraph id="par_id3145609" role="bascode" xml-lang="en-US">Defxxx Characterrange1[, Characterrange2[,...]]</paragraph> -</bascode> - -<paragraph id="hd_id3154760" role="heading" level="2" xml-lang="en-US">Parameters:</paragraph> -<paragraph id="par_id3145069" 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_id3150791" role="paragraph" xml-lang="en-US"> <emph>xxx:</emph> Keyword that defines the default variable type:</paragraph> -<paragraph id="par_id3148798" role="paragraph" xml-lang="en-US"> <emph>Keyword: </emph>Default variable type</paragraph> +<embed href="text/sbasic/shared/03101100.xhp#PrefixDefCommon"/> <paragraph id="par_id3154686" role="paragraph" xml-lang="en-US"> <emph>DefLng:</emph> Long</paragraph> -<paragraph id="hd_id3153192" role="heading" level="2" xml-lang="en-US">Example:</paragraph> +<embed href="text/sbasic/shared/03101100.xhp#ExamplePrefixDefCommon"/> <bascode> -<paragraph id="par_id3154124" role="bascode" xml-lang="en-US">' Prefix definitions for variable types:</paragraph> -<paragraph id="par_idm871800848" role="bascode" localize="false" xml-lang="en-US">DefBool b</paragraph> -<paragraph id="par_idm871799616" role="bascode" localize="false" xml-lang="en-US">DefDate t</paragraph> -<paragraph id="par_idm871798384" role="bascode" localize="false" xml-lang="en-US">DefDbl d</paragraph> -<paragraph id="par_idm871797152" role="bascode" localize="false" xml-lang="en-US">DefInt i</paragraph> -<paragraph id="par_idm871795920" role="bascode" localize="false" xml-lang="en-US">DefLng l</paragraph> -<paragraph id="par_idm871794688" role="bascode" localize="false" xml-lang="en-US">DefObj o</paragraph> -<paragraph id="par_idm871793456" role="bascode" localize="false" xml-lang="en-US">DefVar v</paragraph> <paragraph id="par_idm871792224" role="bascode" localize="false" xml-lang="en-US">Sub ExampleDefLng</paragraph> <paragraph id="par_id3145273" role="bascode" xml-lang="en-US"> lCount=123456789 ' lCount is an implicit long integer variable</paragraph> <paragraph id="par_idm871789232" role="bascode" localize="false" xml-lang="en-US">End Sub</paragraph> </bascode> </body> -</helpdocument>
\ No newline at end of file +</helpdocument> diff --git a/source/text/sbasic/shared/03101700.xhp b/source/text/sbasic/shared/03101700.xhp index aa55a51881..4eba9e0787 100644 --- a/source/text/sbasic/shared/03101700.xhp +++ b/source/text/sbasic/shared/03101700.xhp @@ -1,6 +1,5 @@ <?xml version="1.0" encoding="UTF-8"?> - <!-- * This file is part of the LibreOffice project. * @@ -18,7 +17,7 @@ * except in compliance with the License. You may obtain a copy of * the License at http://www.apache.org/licenses/LICENSE-2.0 . --> - + <helpdocument version="1.0"> <meta> <topic id="textsbasicshared03101700xml" indexer="include" status="PUBLISH"> @@ -36,27 +35,11 @@ <paragraph role="heading" id="hd_id3149811" xml-lang="en-US" level="1"><link href="text/sbasic/shared/03101700.xhp" name="DefObj Statement [Runtime]">DefObj Statement [Runtime]</link></paragraph> <paragraph role="paragraph" id="par_id3147573" xml-lang="en-US">Sets the default variable type, according to a letter range, if no type-declaration character or keyword is specified.</paragraph> </section> -<paragraph role="heading" id="hd_id3150504" xml-lang="en-US" level="2">Syntax:</paragraph> -<bascode> -<paragraph role="bascode" id="par_id3147530" xml-lang="en-US">Defxxx Characterrange1[, Characterrange2[,...]]</paragraph> -</bascode> -<paragraph role="heading" id="hd_id3153896" xml-lang="en-US" level="2">Parameters:</paragraph> -<paragraph role="paragraph" id="par_id3148552" 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 role="paragraph" id="par_id3150358" xml-lang="en-US"> -<emph>xxx:</emph> Keyword that defines the default variable type:</paragraph> -<paragraph role="paragraph" id="par_id3148798" xml-lang="en-US"> -<emph>Keyword: </emph>Default variable type</paragraph> + +<embed href="text/sbasic/shared/03101100.xhp#PrefixDefCommon"/> <paragraph role="paragraph" id="par_id3150769" xml-lang="en-US"> <emph>DefObj:</emph> Object</paragraph> -<paragraph role="heading" id="hd_id3156212" xml-lang="en-US" level="2">Example:</paragraph> -<paragraph role="paragraph" id="par_id3153969" xml-lang="en-US">REM Prefix definitions for variable types:</paragraph> -<paragraph role="paragraph" id="par_id3156424" xml-lang="en-US">DefBool b</paragraph> -<paragraph role="paragraph" id="par_id3159254" xml-lang="en-US">DefDate t</paragraph> -<paragraph role="paragraph" id="par_id3150440" xml-lang="en-US">DefDbL d</paragraph> -<paragraph role="paragraph" id="par_id3161832" xml-lang="en-US">DefInt i</paragraph> -<paragraph role="paragraph" id="par_id3145365" xml-lang="en-US">DefLng l</paragraph> -<paragraph role="paragraph" id="par_id3149481" xml-lang="en-US">DefObj o</paragraph> -<paragraph role="paragraph" id="par_id3152886" xml-lang="en-US">DefVar v</paragraph> + +<embed href="text/sbasic/shared/03101100.xhp#ExamplePrefixDefCommon"/> </body> </helpdocument> |