summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRüdiger Timm <rt@openoffice.org>2004-11-26 13:41:47 +0000
committerRüdiger Timm <rt@openoffice.org>2004-11-26 13:41:47 +0000
commitc40e3fe7cee2265b38a1164af346f8ebed8e6b07 (patch)
treed25bd0914788e318c1b174eb5ff6859e1a92cf6e
parentdc3b9ce974565c17c8ade3c8ac25bc3600fec7b2 (diff)
INTEGRATION: CWS helpcontentbeta (1.1.2); FILE MERGED
2004/09/16 11:45:10 fpe 1.1.2.1: Regular Update
-rwxr-xr-xhelpcontent2/source/text/sbasic/shared/00000003.xhp514
-rw-r--r--helpcontent2/source/text/sbasic/shared/01020200.xhp11
-rw-r--r--helpcontent2/source/text/sbasic/shared/01020300.xhp159
3 files changed, 371 insertions, 313 deletions
diff --git a/helpcontent2/source/text/sbasic/shared/00000003.xhp b/helpcontent2/source/text/sbasic/shared/00000003.xhp
index bd7eb9d642..204df4542b 100755
--- a/helpcontent2/source/text/sbasic/shared/00000003.xhp
+++ b/helpcontent2/source/text/sbasic/shared/00000003.xhp
@@ -52,236 +52,304 @@
* Contributor(s): _______________________________________
*
*
- ************************************************************************--><helpdocument version="1.0">
+ ************************************************************************-->
+
+<helpdocument version="1.0">
<meta>
<topic id="textsbasicshared00000003xml" indexer="exclude" status="PUBLISH">
-<title xml-lang="en-US" id="tit">Information</title>
+<title id="tit" xml-lang="en-US">Information</title>
<filename>/text/sbasic/shared/00000003.xhp</filename>
</topic>
<history>
<created date="2003-10-31T00:00:00">Sun Microsystems, Inc.</created>
-<lastedited date="2003-10-31T00:00:00">converted from old format - fpe</lastedited>
+<lastedited date="2004-09-01T15:16:21">converted from old format - fpe</lastedited>
</history>
</meta>
<body>
-
-
- <paragraph role="heading" level="1" id="hd_id3148550" l10n="U" xml-lang="en-US" oldref="1">Information</paragraph>
- <section id="languageformat">
- <paragraph xml-lang="en-US" oldref="102" l10n="U" role="paragraph" id="par_id3153381">You can set the locale used for controlling the formatting numbers, dates and currencies in $[officename] Basic in <emph>Tools - Options - Language Settings - Languages</emph>. In Basic format codes, the decimal point (<emph>.</emph>) is always used as <emph>placeholder</emph> for the decimal separator defined in your locale and will be replaced by the corresponding character.</paragraph>
- <paragraph role="paragraph" id="par_id3150870" l10n="U" xml-lang="en-US" oldref="103">The same applies to the locale settings for date, time and currency formats. The Basic format code will be interpreted and displayed according to your locale setting.</paragraph>
- </section>
- <section id="farbcodes"><section id="farbcodes">
- <paragraph role="paragraph" id="par_id3156424" l10n="U" xml-lang="en-US" oldref="2">The color values of the 16 basic colors are as follows:</paragraph>
- <table id="tbl_id3147434">
-
-
-
- <tablerow>
- <tablecell>
- <paragraph l10n="U" role="paragraph" id="par_id3153091" xml-lang="en-US" oldref="3"><emph>Color Value</emph></paragraph>
- </tablecell>
- <tablecell>
- <paragraph l10n="U" role="paragraph" id="par_id3154319" xml-lang="en-US" oldref="4"><emph>Color Name</emph></paragraph>
- </tablecell>
- </tablerow>
-
- <tablerow>
- <tablecell>
- <paragraph role="paragraph" id="par_id3151112" l10n="U" xml-lang="en-US" oldref="5">0</paragraph>
- </tablecell>
- <tablecell>
- <paragraph role="paragraph" id="par_id3155854" l10n="U" xml-lang="en-US" oldref="6">Black</paragraph>
- </tablecell>
- </tablerow>
- <tablerow>
- <tablecell>
- <paragraph role="paragraph" id="par_id3154942" l10n="U" xml-lang="en-US" oldref="7">128</paragraph>
- </tablecell>
- <tablecell>
- <paragraph role="paragraph" id="par_id3154731" l10n="U" xml-lang="en-US" oldref="8">Blue</paragraph>
- </tablecell>
- </tablerow>
- <tablerow>
- <tablecell>
- <paragraph role="paragraph" id="par_id3145645" l10n="U" xml-lang="en-US" oldref="9">32768</paragraph>
- </tablecell>
- <tablecell>
- <paragraph role="paragraph" id="par_id3149400" l10n="U" xml-lang="en-US" oldref="10">Green</paragraph>
- </tablecell>
- </tablerow>
- <tablerow>
- <tablecell>
- <paragraph role="paragraph" id="par_id3150753" l10n="U" xml-lang="en-US" oldref="11">32896</paragraph>
- </tablecell>
- <tablecell>
- <paragraph role="paragraph" id="par_id3153765" l10n="U" xml-lang="en-US" oldref="12">Cyan</paragraph>
- </tablecell>
- </tablerow>
- <tablerow>
- <tablecell>
- <paragraph role="paragraph" id="par_id3154756" l10n="U" xml-lang="en-US" oldref="13">8388608</paragraph>
- </tablecell>
- <tablecell>
- <paragraph role="paragraph" id="par_id3159266" l10n="U" xml-lang="en-US" oldref="14">Red</paragraph>
- </tablecell>
- </tablerow>
- <tablerow>
- <tablecell>
- <paragraph role="paragraph" id="par_id3163807" l10n="U" xml-lang="en-US" oldref="15">8388736</paragraph>
- </tablecell>
- <tablecell>
- <paragraph role="paragraph" id="par_id3145150" l10n="U" xml-lang="en-US" oldref="16">Magenta</paragraph>
- </tablecell>
- </tablerow>
- <tablerow>
- <tablecell>
- <paragraph role="paragraph" id="par_id3147002" l10n="U" xml-lang="en-US" oldref="17">8421376</paragraph>
- </tablecell>
- <tablecell>
- <paragraph role="paragraph" id="par_id3152778" l10n="U" xml-lang="en-US" oldref="18">Yellow</paragraph>
- </tablecell>
- </tablerow>
- <tablerow>
- <tablecell>
- <paragraph role="paragraph" id="par_id3150088" l10n="U" xml-lang="en-US" oldref="19">8421504</paragraph>
- </tablecell>
- <tablecell>
- <paragraph role="paragraph" id="par_id3159239" l10n="U" xml-lang="en-US" oldref="20">White</paragraph>
- </tablecell>
- </tablerow>
- <tablerow>
- <tablecell>
- <paragraph role="paragraph" id="par_id3150206" l10n="U" xml-lang="en-US" oldref="21">12632256</paragraph>
- </tablecell>
- <tablecell>
- <paragraph role="paragraph" id="par_id3149817" l10n="U" xml-lang="en-US" oldref="22">Gray</paragraph>
- </tablecell>
- </tablerow>
- <tablerow>
- <tablecell>
- <paragraph role="paragraph" id="par_id3150363" l10n="U" xml-lang="en-US" oldref="23">255</paragraph>
- </tablecell>
- <tablecell>
- <paragraph role="paragraph" id="par_id3154576" l10n="U" xml-lang="en-US" oldref="24">Light blue</paragraph>
- </tablecell>
- </tablerow>
- <tablerow>
- <tablecell>
- <paragraph role="paragraph" id="par_id3150367" l10n="U" xml-lang="en-US" oldref="25">65280</paragraph>
- </tablecell>
- <tablecell>
- <paragraph role="paragraph" id="par_id3150202" l10n="U" xml-lang="en-US" oldref="26">Light green</paragraph>
- </tablecell>
- </tablerow>
- <tablerow>
- <tablecell>
- <paragraph role="paragraph" id="par_id3154487" l10n="U" xml-lang="en-US" oldref="27">65535</paragraph>
- </tablecell>
- <tablecell>
- <paragraph role="paragraph" id="par_id3151332" l10n="U" xml-lang="en-US" oldref="28">Light cyan</paragraph>
- </tablecell>
- </tablerow>
- <tablerow>
- <tablecell>
- <paragraph role="paragraph" id="par_id3148702" l10n="U" xml-lang="en-US" oldref="29">16711680</paragraph>
- </tablecell>
- <tablecell>
- <paragraph role="paragraph" id="par_id3153067" l10n="U" xml-lang="en-US" oldref="30">Light red</paragraph>
- </tablecell>
- </tablerow>
- <tablerow>
- <tablecell>
- <paragraph role="paragraph" id="par_id3153912" l10n="U" xml-lang="en-US" oldref="31">16711935</paragraph>
- </tablecell>
- <tablecell>
- <paragraph role="paragraph" id="par_id3159097" l10n="U" xml-lang="en-US" oldref="32">Light magenta</paragraph>
- </tablecell>
- </tablerow>
- <tablerow>
- <tablecell>
- <paragraph role="paragraph" id="par_id3155266" l10n="U" xml-lang="en-US" oldref="33">16776960</paragraph>
- </tablecell>
- <tablecell>
- <paragraph role="paragraph" id="par_id3157978" l10n="U" xml-lang="en-US" oldref="34">Light yellow</paragraph>
- </tablecell>
- </tablerow>
- <tablerow>
- <tablecell>
- <paragraph role="paragraph" id="par_id3153286" l10n="U" xml-lang="en-US" oldref="35">16777215</paragraph>
- </tablecell>
- <tablecell>
- <paragraph role="paragraph" id="par_id3151302" l10n="U" xml-lang="en-US" oldref="36">Transparent white</paragraph>
- </tablecell>
- </tablerow>
- </table>
- </section></section>
- <paragraph id="hd_id3152869" role="heading" level="3" oldref="37" l10n="U" xml-lang="en-US"><variable id="errorcode">Error Codes</variable></paragraph>
- <section id="allerrors">
- <paragraph l10n="U" role="paragraph" id="par_id3155095" xml-lang="en-US" oldref="38"><variable id="err2">2 Unspecified syntax error</variable></paragraph>
- <paragraph l10n="U" role="paragraph" id="par_id3149126" xml-lang="en-US" oldref="39"><variable id="err3">3 Return without Gosub</variable></paragraph>
- <paragraph l10n="U" role="paragraph" id="par_id3153976" xml-lang="en-US" oldref="40"><variable id="err4">4 Redo from start </variable></paragraph>
- <paragraph l10n="U" role="paragraph" id="par_id3150891" xml-lang="en-US" oldref="41"><variable id="err5">5 Invalid procedure call</variable></paragraph>
- <paragraph l10n="U" role="paragraph" id="par_id3159227" xml-lang="en-US" oldref="42"><variable id="err6">6 Overflow</variable></paragraph>
- <paragraph l10n="U" role="paragraph" id="par_id3154649" xml-lang="en-US" oldref="43"><variable id="err7">7 Out of memory</variable></paragraph>
- <paragraph l10n="U" role="paragraph" id="par_id3150050" xml-lang="en-US" oldref="44"><variable id="err8">8 Array already dimensioned</variable></paragraph>
- <paragraph l10n="U" role="paragraph" id="par_id3148900" xml-lang="en-US" oldref="45"><variable id="err9">9 Subscript out of range</variable></paragraph>
- <paragraph l10n="U" role="paragraph" id="par_id3153806" xml-lang="en-US" oldref="46"><variable id="err10">10 Duplicate definition</variable></paragraph>
- <paragraph l10n="U" role="paragraph" id="par_id3146963" xml-lang="en-US" oldref="47"><variable id="err11">11 Division by zero</variable></paragraph>
- <paragraph l10n="U" role="paragraph" id="par_id3153013" xml-lang="en-US" oldref="48"><variable id="err12">12 Variable undefined </variable></paragraph>
- <paragraph l10n="U" role="paragraph" id="par_id3155593" xml-lang="en-US" oldref="49"><variable id="err13">13 Type mismatch</variable></paragraph>
- <paragraph l10n="U" role="paragraph" id="par_id3151197" xml-lang="en-US" oldref="50"><variable id="err14">14 Invalid parameter</variable></paragraph>
- <paragraph l10n="U" role="paragraph" id="par_id3154710" xml-lang="en-US" oldref="51"><variable id="err18">18 User interrupt occurred</variable></paragraph>
- <paragraph l10n="U" role="paragraph" id="par_id3147504" xml-lang="en-US" oldref="52"><variable id="err20">20 Resume without error</variable></paragraph>
- <paragraph l10n="U" role="paragraph" id="par_id3145319" xml-lang="en-US" oldref="53"><variable id="err28">28 Out of stack space</variable></paragraph>
- <paragraph l10n="U" role="paragraph" id="par_id3146110" xml-lang="en-US" oldref="54"><variable id="err35">35 Sub or Function not defined</variable></paragraph>
- <paragraph l10n="U" role="paragraph" id="par_id3147246" xml-lang="en-US" oldref="55"><variable id="err48">48 Error in loading DLL</variable></paragraph>
- <paragraph l10n="U" role="paragraph" id="par_id3146101" xml-lang="en-US" oldref="56"><variable id="err49">49 Bad DLL calling convention</variable></paragraph>
- <paragraph l10n="U" role="paragraph" id="par_id3153957" xml-lang="en-US" oldref="57"><variable id="err51">51 Internal error</variable></paragraph>
- <paragraph l10n="U" role="paragraph" id="par_id3154404" xml-lang="en-US" oldref="58"><variable id="err52">52 Bad file name or number</variable></paragraph>
- <paragraph l10n="U" role="paragraph" id="par_id3151338" xml-lang="en-US" oldref="59"><variable id="err53">53 File not found</variable></paragraph>
- <paragraph l10n="U" role="paragraph" id="par_id3147298" xml-lang="en-US" oldref="60"><variable id="err54">54 Bad file mode</variable></paragraph>
- <paragraph l10n="U" role="paragraph" id="par_id3148747" xml-lang="en-US" oldref="61"><variable id="err55">55 File already open</variable></paragraph>
- <paragraph l10n="U" role="paragraph" id="par_id3145233" xml-lang="en-US" oldref="62"><variable id="err57">57 Device I/O error</variable></paragraph>
- <paragraph l10n="U" role="paragraph" id="par_id3156399" xml-lang="en-US" oldref="63"><variable id="err58">58 File already exists</variable></paragraph>
- <paragraph l10n="U" role="paragraph" id="par_id3149324" xml-lang="en-US" oldref="64"><variable id="err59">59 Bad record length</variable></paragraph>
- <paragraph l10n="U" role="paragraph" id="par_id3147409" xml-lang="en-US" oldref="65"><variable id="err61">61 Disk full</variable></paragraph>
- <paragraph l10n="U" role="paragraph" id="par_id3149146" xml-lang="en-US" oldref="66"><variable id="err62">62 Input past end of file</variable></paragraph>
- <paragraph l10n="U" role="paragraph" id="par_id3150456" xml-lang="en-US" oldref="67"><variable id="err63">63 Bad record number</variable></paragraph>
- <paragraph l10n="U" role="paragraph" id="par_id3146883" xml-lang="en-US" oldref="68"><variable id="err67">67 Too many files</variable></paragraph>
- <paragraph l10n="U" role="paragraph" id="par_id3146818" xml-lang="en-US" oldref="69"><variable id="err68">68 Device not available</variable></paragraph>
- <paragraph l10n="U" role="paragraph" id="par_id3145225" xml-lang="en-US" oldref="70"><variable id="err70">70 Permission denied</variable></paragraph>
- <paragraph l10n="U" role="paragraph" id="par_id3150372" xml-lang="en-US" oldref="71"><variable id="err71">71 Disk not ready</variable></paragraph>
- <paragraph l10n="U" role="paragraph" id="par_id3148894" xml-lang="en-US" oldref="72"><variable id="err73">73 Feature not implemented</variable></paragraph>
- <paragraph l10n="U" role="paragraph" id="par_id3152981" xml-lang="en-US" oldref="73"><variable id="err74">74 No rename with different drive</variable></paragraph>
- <paragraph l10n="U" role="paragraph" id="par_id3149355" xml-lang="en-US" oldref="74"><variable id="err75">75 Path/file access error</variable></paragraph>
- <paragraph l10n="U" role="paragraph" id="par_id3150477" xml-lang="en-US" oldref="75"><variable id="err76">76 Path not found</variable></paragraph>
- <paragraph l10n="U" role="paragraph" id="par_id3154678" xml-lang="en-US" oldref="76"><variable id="err91">91 Object variable not set</variable></paragraph>
- <paragraph l10n="U" role="paragraph" id="par_id3149890" xml-lang="en-US" oldref="77"><variable id="err93">93 Invalid pattern string</variable></paragraph>
- <paragraph l10n="U" role="paragraph" id="par_id3146942" xml-lang="en-US" oldref="78"><variable id="err94">94 Invalid use of Null</variable></paragraph>
- <paragraph l10n="U" role="paragraph" id="par_id3150028" xml-lang="en-US" oldref="79"><variable id="err323">323 Can't load module</variable></paragraph>
- <paragraph l10n="U" role="paragraph" id="par_id3148434" xml-lang="en-US" oldref="80"><variable id="err341">341 Invalid object index</variable></paragraph>
- <paragraph l10n="U" role="paragraph" id="par_id3143219" xml-lang="en-US" oldref="81"><variable id="err366">366 No active view or document</variable></paragraph>
- <paragraph l10n="U" role="paragraph" id="par_id3144744" xml-lang="en-US" oldref="82"><variable id="err380">380 Bad property value</variable></paragraph>
- <paragraph l10n="U" role="paragraph" id="par_id3147420" xml-lang="en-US" oldref="83"><variable id="err382">382 Property is read only</variable></paragraph>
- <paragraph l10n="U" role="paragraph" id="par_id3147472" xml-lang="en-US" oldref="84"><variable id="err394">394 Property is write only</variable></paragraph>
- <paragraph l10n="U" role="paragraph" id="par_id3148583" xml-lang="en-US" oldref="85"><variable id="err420">420 Invalid object reference</variable></paragraph>
- <paragraph l10n="U" role="paragraph" id="par_id3153329" xml-lang="en-US" oldref="86"><variable id="err423">423 Property or method not found</variable></paragraph>
- <paragraph l10n="U" role="paragraph" id="par_id3148738" xml-lang="en-US" oldref="87"><variable id="err424">424 Object required</variable></paragraph>
- <paragraph l10n="U" role="paragraph" id="par_id3159084" xml-lang="en-US" oldref="88"><variable id="err425">425 Invalid use of object</variable></paragraph>
- <paragraph l10n="U" role="paragraph" id="par_id3146806" xml-lang="en-US" oldref="89"><variable id="err430">430 Class does not support OLE</variable></paragraph>
- <paragraph l10n="U" role="paragraph" id="par_id3146130" xml-lang="en-US" oldref="90"><variable id="err438">438 Object doesn't support method</variable></paragraph>
- <paragraph l10n="U" role="paragraph" id="par_id3154374" xml-lang="en-US" oldref="91"><variable id="err440">440 OLE automation error</variable></paragraph>
- <paragraph l10n="U" role="paragraph" id="par_id3149685" xml-lang="en-US" oldref="92"><variable id="err445">445 Object doesn't support this action</variable></paragraph>
- <paragraph l10n="U" role="paragraph" id="par_id3150282" xml-lang="en-US" oldref="93"><variable id="err446">446 Object doesn't support named args</variable></paragraph>
- <paragraph l10n="U" role="paragraph" id="par_id3150142" xml-lang="en-US" oldref="94"><variable id="err447">447 Object doesn't support current locale setting</variable></paragraph>
- <paragraph l10n="U" role="paragraph" id="par_id3152771" xml-lang="en-US" oldref="95"><variable id="err448">448 Named argument not found</variable></paragraph>
- <paragraph l10n="U" role="paragraph" id="par_id3145145" xml-lang="en-US" oldref="96"><variable id="err449">449 Argument not optional</variable></paragraph>
- <paragraph l10n="U" role="paragraph" id="par_id3154399" xml-lang="en-US" oldref="97"><variable id="err450">450 Wrong number of arguments</variable></paragraph>
- <paragraph l10n="U" role="paragraph" id="par_id3146137" xml-lang="en-US" oldref="98"><variable id="err451">451 Object not a collection</variable></paragraph>
- <paragraph l10n="U" role="paragraph" id="par_id3149507" xml-lang="en-US" oldref="99"><variable id="err452">452 Invalid ordinal</variable></paragraph>
- <paragraph l10n="U" role="paragraph" id="par_id3154566" xml-lang="en-US" oldref="100"><variable id="err453">453 Specified DLL function not found</variable></paragraph>
- <paragraph l10n="U" role="paragraph" id="par_id3145595" xml-lang="en-US" oldref="101"><variable id="err460">460 Invalid clipboard format</variable></paragraph>
- </section>
- </body>
+<paragraph role="heading" id="hd_id3148550" xml-lang="en-US" level="1" l10n="U" oldref="1">Information</paragraph>
+<section id="languageformat">
+<paragraph role="paragraph" id="par_id3153381" xml-lang="en-US" l10n="U" oldref="102">You can set the locale used for controlling the formatting numbers, dates and currencies in $[officename] Basic in <emph>Tools - Options - Language Settings - Languages</emph>. In Basic format codes, the decimal point (<emph>.</emph>) is always used as <emph>placeholder</emph> for the decimal separator defined in your locale and will be replaced by the corresponding character.</paragraph>
+<paragraph role="paragraph" id="par_id3150870" xml-lang="en-US" l10n="U" oldref="103">The same applies to the locale settings for date, time and currency formats. The Basic format code will be interpreted and displayed according to your locale setting.</paragraph>
+</section>
+<section id="farbcodes">
+<paragraph role="paragraph" id="par_id3156424" xml-lang="en-US" l10n="U" oldref="2">The color values of the 16 basic colors are as follows:</paragraph>
+<table id="tbl_id3147434">
+<tablerow>
+<tablecell colspan="" rowspan="">
+<paragraph role="paragraph" id="par_id3153091" xml-lang="en-US" l10n="U" oldref="3">
+<emph>Color Value</emph>
+</paragraph>
+</tablecell>
+<tablecell colspan="" rowspan="">
+<paragraph role="paragraph" id="par_id3154319" xml-lang="en-US" l10n="U" oldref="4">
+<emph>Color Name</emph>
+</paragraph>
+</tablecell>
+</tablerow>
+<tablerow>
+<tablecell colspan="" rowspan="">
+<paragraph role="paragraph" id="par_id3151112" xml-lang="en-US" l10n="U" oldref="5">0</paragraph>
+</tablecell>
+<tablecell colspan="" rowspan="">
+<paragraph role="paragraph" id="par_id3155854" xml-lang="en-US" l10n="U" oldref="6">Black</paragraph>
+</tablecell>
+</tablerow>
+<tablerow>
+<tablecell colspan="" rowspan="">
+<paragraph role="paragraph" id="par_id3154942" xml-lang="en-US" l10n="U" oldref="7">128</paragraph>
+</tablecell>
+<tablecell colspan="" rowspan="">
+<paragraph role="paragraph" id="par_id3154731" xml-lang="en-US" l10n="U" oldref="8">Blue</paragraph>
+</tablecell>
+</tablerow>
+<tablerow>
+<tablecell colspan="" rowspan="">
+<paragraph role="paragraph" id="par_id3145645" xml-lang="en-US" l10n="U" oldref="9">32768</paragraph>
+</tablecell>
+<tablecell colspan="" rowspan="">
+<paragraph role="paragraph" id="par_id3149400" xml-lang="en-US" l10n="U" oldref="10">Green</paragraph>
+</tablecell>
+</tablerow>
+<tablerow>
+<tablecell colspan="" rowspan="">
+<paragraph role="paragraph" id="par_id3150753" xml-lang="en-US" l10n="U" oldref="11">32896</paragraph>
+</tablecell>
+<tablecell colspan="" rowspan="">
+<paragraph role="paragraph" id="par_id3153765" xml-lang="en-US" l10n="U" oldref="12">Cyan</paragraph>
+</tablecell>
+</tablerow>
+<tablerow>
+<tablecell colspan="" rowspan="">
+<paragraph role="paragraph" id="par_id3154756" xml-lang="en-US" l10n="U" oldref="13">8388608</paragraph>
+</tablecell>
+<tablecell colspan="" rowspan="">
+<paragraph role="paragraph" id="par_id3159266" xml-lang="en-US" l10n="U" oldref="14">Red</paragraph>
+</tablecell>
+</tablerow>
+<tablerow>
+<tablecell colspan="" rowspan="">
+<paragraph role="paragraph" id="par_id3163807" xml-lang="en-US" l10n="U" oldref="15">8388736</paragraph>
+</tablecell>
+<tablecell colspan="" rowspan="">
+<paragraph role="paragraph" id="par_id3145150" xml-lang="en-US" l10n="U" oldref="16">Magenta</paragraph>
+</tablecell>
+</tablerow>
+<tablerow>
+<tablecell colspan="" rowspan="">
+<paragraph role="paragraph" id="par_id3147002" xml-lang="en-US" l10n="U" oldref="17">8421376</paragraph>
+</tablecell>
+<tablecell colspan="" rowspan="">
+<paragraph role="paragraph" id="par_id3152778" xml-lang="en-US" l10n="U" oldref="18">Yellow</paragraph>
+</tablecell>
+</tablerow>
+<tablerow>
+<tablecell colspan="" rowspan="">
+<paragraph role="paragraph" id="par_id3150088" xml-lang="en-US" l10n="U" oldref="19">8421504</paragraph>
+</tablecell>
+<tablecell colspan="" rowspan="">
+<paragraph role="paragraph" id="par_id3159239" xml-lang="en-US" l10n="U" oldref="20">White</paragraph>
+</tablecell>
+</tablerow>
+<tablerow>
+<tablecell colspan="" rowspan="">
+<paragraph role="paragraph" id="par_id3150206" xml-lang="en-US" l10n="U" oldref="21">12632256</paragraph>
+</tablecell>
+<tablecell colspan="" rowspan="">
+<paragraph role="paragraph" id="par_id3149817" xml-lang="en-US" l10n="U" oldref="22">Gray</paragraph>
+</tablecell>
+</tablerow>
+<tablerow>
+<tablecell colspan="" rowspan="">
+<paragraph role="paragraph" id="par_id3150363" xml-lang="en-US" l10n="U" oldref="23">255</paragraph>
+</tablecell>
+<tablecell colspan="" rowspan="">
+<paragraph role="paragraph" id="par_id3154576" xml-lang="en-US" l10n="U" oldref="24">Light blue</paragraph>
+</tablecell>
+</tablerow>
+<tablerow>
+<tablecell colspan="" rowspan="">
+<paragraph role="paragraph" id="par_id3150367" xml-lang="en-US" l10n="U" oldref="25">65280</paragraph>
+</tablecell>
+<tablecell colspan="" rowspan="">
+<paragraph role="paragraph" id="par_id3150202" xml-lang="en-US" l10n="U" oldref="26">Light green</paragraph>
+</tablecell>
+</tablerow>
+<tablerow>
+<tablecell colspan="" rowspan="">
+<paragraph role="paragraph" id="par_id3154487" xml-lang="en-US" l10n="U" oldref="27">65535</paragraph>
+</tablecell>
+<tablecell colspan="" rowspan="">
+<paragraph role="paragraph" id="par_id3151332" xml-lang="en-US" l10n="U" oldref="28">Light cyan</paragraph>
+</tablecell>
+</tablerow>
+<tablerow>
+<tablecell colspan="" rowspan="">
+<paragraph role="paragraph" id="par_id3148702" xml-lang="en-US" l10n="U" oldref="29">16711680</paragraph>
+</tablecell>
+<tablecell colspan="" rowspan="">
+<paragraph role="paragraph" id="par_id3153067" xml-lang="en-US" l10n="U" oldref="30">Light red</paragraph>
+</tablecell>
+</tablerow>
+<tablerow>
+<tablecell colspan="" rowspan="">
+<paragraph role="paragraph" id="par_id3153912" xml-lang="en-US" l10n="U" oldref="31">16711935</paragraph>
+</tablecell>
+<tablecell colspan="" rowspan="">
+<paragraph role="paragraph" id="par_id3159097" xml-lang="en-US" l10n="U" oldref="32">Light magenta</paragraph>
+</tablecell>
+</tablerow>
+<tablerow>
+<tablecell colspan="" rowspan="">
+<paragraph role="paragraph" id="par_id3155266" xml-lang="en-US" l10n="U" oldref="33">16776960</paragraph>
+</tablecell>
+<tablecell colspan="" rowspan="">
+<paragraph role="paragraph" id="par_id3157978" xml-lang="en-US" l10n="U" oldref="34">Light yellow</paragraph>
+</tablecell>
+</tablerow>
+<tablerow>
+<tablecell colspan="" rowspan="">
+<paragraph role="paragraph" id="par_id3153286" xml-lang="en-US" l10n="U" oldref="35">16777215</paragraph>
+</tablecell>
+<tablecell colspan="" rowspan="">
+<paragraph role="paragraph" id="par_id3151302" xml-lang="en-US" l10n="U" oldref="36">Transparent white</paragraph>
+</tablecell>
+</tablerow>
+</table>
+
+</section>
+<section id="errorcode">
+<paragraph role="heading" id="hd_id3152869" xml-lang="en-US" level="1" l10n="U" oldref="37"><variable id="errorcode">Error Codes
+</variable></paragraph>
+</section>
+<section id="allerrors">
+<paragraph role="paragraph" id="par_id3155095" xml-lang="en-US" l10n="U" oldref="38"><variable id="err2">2 Unspecified syntax error
+</variable></paragraph>
+<paragraph role="paragraph" id="par_id3149126" xml-lang="en-US" l10n="U" oldref="39"><variable id="err3">3 Return without Gosub
+</variable></paragraph>
+<paragraph role="paragraph" id="par_id3153976" xml-lang="en-US" l10n="U" oldref="40"><variable id="err4">4 Redo from start
+</variable></paragraph>
+<paragraph role="paragraph" id="par_id3150891" xml-lang="en-US" l10n="U" oldref="41"><variable id="err5">5 Invalid procedure call
+</variable></paragraph>
+<paragraph role="paragraph" id="par_id3159227" xml-lang="en-US" l10n="U" oldref="42"><variable id="err6">6 Overflow
+</variable></paragraph>
+<paragraph role="paragraph" id="par_id3154649" xml-lang="en-US" l10n="U" oldref="43"><variable id="err7">7 Out of memory
+</variable></paragraph>
+<paragraph role="paragraph" id="par_id3150050" xml-lang="en-US" l10n="U" oldref="44"><variable id="err8">8 Array already dimensioned
+</variable></paragraph>
+<paragraph role="paragraph" id="par_id3148900" xml-lang="en-US" l10n="U" oldref="45"><variable id="err9">9 Subscript out of range
+</variable></paragraph>
+<paragraph role="paragraph" id="par_id3153806" xml-lang="en-US" l10n="U" oldref="46"><variable id="err10">10 Duplicate definition
+</variable></paragraph>
+<paragraph role="paragraph" id="par_id3146963" xml-lang="en-US" l10n="U" oldref="47"><variable id="err11">11 Division by zero
+</variable></paragraph>
+<paragraph role="paragraph" id="par_id3153013" xml-lang="en-US" l10n="U" oldref="48"><variable id="err12">12 Variable undefined
+</variable></paragraph>
+<paragraph role="paragraph" id="par_id3155593" xml-lang="en-US" l10n="U" oldref="49"><variable id="err13">13 Type mismatch
+</variable></paragraph>
+<paragraph role="paragraph" id="par_id3151197" xml-lang="en-US" l10n="U" oldref="50"><variable id="err14">14 Invalid parameter
+</variable></paragraph>
+<paragraph role="paragraph" id="par_id3154710" xml-lang="en-US" l10n="U" oldref="51"><variable id="err18">18 User interrupt occurred
+</variable></paragraph>
+<paragraph role="paragraph" id="par_id3147504" xml-lang="en-US" l10n="U" oldref="52"><variable id="err20">20 Resume without error
+</variable></paragraph>
+<paragraph role="paragraph" id="par_id3145319" xml-lang="en-US" l10n="U" oldref="53"><variable id="err28">28 Out of stack space
+</variable></paragraph>
+<paragraph role="paragraph" id="par_id3146110" xml-lang="en-US" l10n="U" oldref="54"><variable id="err35">35 Sub or Function not defined
+</variable></paragraph>
+<paragraph role="paragraph" id="par_id3147246" xml-lang="en-US" l10n="U" oldref="55"><variable id="err48">48 Error in loading DLL
+</variable></paragraph>
+<paragraph role="paragraph" id="par_id3146101" xml-lang="en-US" l10n="U" oldref="56"><variable id="err49">49 Bad DLL calling convention
+</variable></paragraph>
+<paragraph role="paragraph" id="par_id3153957" xml-lang="en-US" l10n="U" oldref="57"><variable id="err51">51 Internal error
+</variable></paragraph>
+<paragraph role="paragraph" id="par_id3154404" xml-lang="en-US" l10n="U" oldref="58"><variable id="err52">52 Bad file name or number
+</variable></paragraph>
+<paragraph role="paragraph" id="par_id3151338" xml-lang="en-US" l10n="U" oldref="59"><variable id="err53">53 File not found
+</variable></paragraph>
+<paragraph role="paragraph" id="par_id3147298" xml-lang="en-US" l10n="U" oldref="60"><variable id="err54">54 Bad file mode
+</variable></paragraph>
+<paragraph role="paragraph" id="par_id3148747" xml-lang="en-US" l10n="U" oldref="61"><variable id="err55">55 File already open
+</variable></paragraph>
+<paragraph role="paragraph" id="par_id3145233" xml-lang="en-US" l10n="U" oldref="62"><variable id="err57">57 Device I/O error
+</variable></paragraph>
+<paragraph role="paragraph" id="par_id3156399" xml-lang="en-US" l10n="U" oldref="63"><variable id="err58">58 File already exists
+</variable></paragraph>
+<paragraph role="paragraph" id="par_id3149324" xml-lang="en-US" l10n="U" oldref="64"><variable id="err59">59 Bad record length
+</variable></paragraph>
+<paragraph role="paragraph" id="par_id3147409" xml-lang="en-US" l10n="U" oldref="65"><variable id="err61">61 Disk full
+</variable></paragraph>
+<paragraph role="paragraph" id="par_id3149146" xml-lang="en-US" l10n="U" oldref="66"><variable id="err62">62 Input past end of file
+</variable></paragraph>
+<paragraph role="paragraph" id="par_id3150456" xml-lang="en-US" l10n="U" oldref="67"><variable id="err63">63 Bad record number
+</variable></paragraph>
+<paragraph role="paragraph" id="par_id3146883" xml-lang="en-US" l10n="U" oldref="68"><variable id="err67">67 Too many files
+</variable></paragraph>
+<paragraph role="paragraph" id="par_id3146818" xml-lang="en-US" l10n="U" oldref="69"><variable id="err68">68 Device not available
+</variable></paragraph>
+<paragraph role="paragraph" id="par_id3145225" xml-lang="en-US" l10n="U" oldref="70"><variable id="err70">70 Permission denied
+</variable></paragraph>
+<paragraph role="paragraph" id="par_id3150372" xml-lang="en-US" l10n="U" oldref="71"><variable id="err71">71 Disk not ready
+</variable></paragraph>
+<paragraph role="paragraph" id="par_id3148894" xml-lang="en-US" l10n="U" oldref="72"><variable id="err73">73 Feature not implemented
+</variable></paragraph>
+<paragraph role="paragraph" id="par_id3152981" xml-lang="en-US" l10n="U" oldref="73"><variable id="err74">74 No rename with different drive
+</variable></paragraph>
+<paragraph role="paragraph" id="par_id3149355" xml-lang="en-US" l10n="U" oldref="74"><variable id="err75">75 Path/file access error
+</variable></paragraph>
+<paragraph role="paragraph" id="par_id3150477" xml-lang="en-US" l10n="U" oldref="75"><variable id="err76">76 Path not found
+</variable></paragraph>
+<paragraph role="paragraph" id="par_id3154678" xml-lang="en-US" l10n="U" oldref="76"><variable id="err91">91 Object variable not set
+</variable></paragraph>
+<paragraph role="paragraph" id="par_id3149890" xml-lang="en-US" l10n="U" oldref="77"><variable id="err93">93 Invalid pattern string
+</variable></paragraph>
+<paragraph role="paragraph" id="par_id3146942" xml-lang="en-US" l10n="U" oldref="78"><variable id="err94">94 Invalid use of Null
+</variable></paragraph>
+<paragraph role="paragraph" id="par_id3150028" xml-lang="en-US" l10n="U" oldref="79"><variable id="err323">323 Can't load module
+</variable></paragraph>
+<paragraph role="paragraph" id="par_id3148434" xml-lang="en-US" l10n="U" oldref="80"><variable id="err341">341 Invalid object index
+</variable></paragraph>
+<paragraph role="paragraph" id="par_id3143219" xml-lang="en-US" l10n="U" oldref="81"><variable id="err366">366 No active view or document
+</variable></paragraph>
+<paragraph role="paragraph" id="par_id3144744" xml-lang="en-US" l10n="U" oldref="82"><variable id="err380">380 Bad property value
+</variable></paragraph>
+<paragraph role="paragraph" id="par_id3147420" xml-lang="en-US" l10n="U" oldref="83"><variable id="err382">382 Property is read only
+</variable></paragraph>
+<paragraph role="paragraph" id="par_id3147472" xml-lang="en-US" l10n="U" oldref="84"><variable id="err394">394 Property is write only
+</variable></paragraph>
+<paragraph role="paragraph" id="par_id3148583" xml-lang="en-US" l10n="U" oldref="85"><variable id="err420">420 Invalid object reference
+</variable></paragraph>
+<paragraph role="paragraph" id="par_id3153329" xml-lang="en-US" l10n="U" oldref="86"><variable id="err423">423 Property or method not found
+</variable></paragraph>
+<paragraph role="paragraph" id="par_id3148738" xml-lang="en-US" l10n="U" oldref="87"><variable id="err424">424 Object required
+</variable></paragraph>
+<paragraph role="paragraph" id="par_id3159084" xml-lang="en-US" l10n="U" oldref="88"><variable id="err425">425 Invalid use of object
+</variable></paragraph>
+<paragraph role="paragraph" id="par_id3146806" xml-lang="en-US" l10n="U" oldref="89"><variable id="err430">430 Class does not support OLE
+</variable></paragraph>
+<paragraph role="paragraph" id="par_id3146130" xml-lang="en-US" l10n="U" oldref="90"><variable id="err438">438 Object doesn't support method
+</variable></paragraph>
+<paragraph role="paragraph" id="par_id3154374" xml-lang="en-US" l10n="U" oldref="91"><variable id="err440">440 OLE automation error
+</variable></paragraph>
+<paragraph role="paragraph" id="par_id3149685" xml-lang="en-US" l10n="U" oldref="92"><variable id="err445">445 Object doesn't support this action
+</variable></paragraph>
+<paragraph role="paragraph" id="par_id3150282" xml-lang="en-US" l10n="U" oldref="93"><variable id="err446">446 Object doesn't support named args
+</variable></paragraph>
+<paragraph role="paragraph" id="par_id3150142" xml-lang="en-US" l10n="U" oldref="94"><variable id="err447">447 Object doesn't support current locale setting
+</variable></paragraph>
+<paragraph role="paragraph" id="par_id3152771" xml-lang="en-US" l10n="U" oldref="95"><variable id="err448">448 Named argument not found
+</variable></paragraph>
+<paragraph role="paragraph" id="par_id3145145" xml-lang="en-US" l10n="U" oldref="96"><variable id="err449">449 Argument not optional
+</variable></paragraph>
+<paragraph role="paragraph" id="par_id3154399" xml-lang="en-US" l10n="U" oldref="97"><variable id="err450">450 Wrong number of arguments
+</variable></paragraph>
+<paragraph role="paragraph" id="par_id3146137" xml-lang="en-US" l10n="U" oldref="98"><variable id="err451">451 Object not a collection
+</variable></paragraph>
+<paragraph role="paragraph" id="par_id3149507" xml-lang="en-US" l10n="U" oldref="99"><variable id="err452">452 Invalid ordinal
+</variable></paragraph>
+<paragraph role="paragraph" id="par_id3154566" xml-lang="en-US" l10n="U" oldref="100"><variable id="err453">453 Specified DLL function not found
+</variable></paragraph>
+<paragraph role="paragraph" id="par_id3145595" xml-lang="en-US" l10n="U" oldref="101"><variable id="err460">460 Invalid clipboard format
+</variable></paragraph>
+</section>
+</body>
</helpdocument>
diff --git a/helpcontent2/source/text/sbasic/shared/01020200.xhp b/helpcontent2/source/text/sbasic/shared/01020200.xhp
index 293f8c0d4d..73574dccd6 100644
--- a/helpcontent2/source/text/sbasic/shared/01020200.xhp
+++ b/helpcontent2/source/text/sbasic/shared/01020200.xhp
@@ -62,23 +62,22 @@
</topic>
<history>
<created date="2003-10-31T00:00:00">Sun Microsystems, Inc.</created>
-<lastedited date="2004-06-14T15:31:29">FPE: Deleted Screenshot. Cleaned.</lastedited>
+<lastedited date="2004-09-01T14:23:07">FPE: Deleted Screenshot. Cleaned.</lastedited>
</history>
</meta>
<body>
<section id="objekte">
-<paragraph role="heading" id="hd_id3145645" xml-lang="en-US" level="1" l10n="U" oldref="1"><variable id="01020200"><link href="text/sbasic/shared/01020200.xhp">Using Objects</link>
+<paragraph role="heading" id="hd_id3145645" xml-lang="en-US" level="1" l10n="U" oldref="1"><variable id="01020200"><link href="text/sbasic/shared/01020200.xhp">Using the Object Catalog</link>
</variable></paragraph>
+<paragraph role="paragraph" id="par_id3153707" xml-lang="en-US" l10n="U" oldref="76">The object catalog provides an overview of all modules and dialogs you have created in $[officename].</paragraph>
</section>
-<paragraph role="heading" id="hd_id3155603" xml-lang="en-US" level="2" l10n="U" oldref="75">The Object Catalog</paragraph>
<section id="object_catalog">
-<paragraph role="paragraph" id="par_id3153707" xml-lang="en-US" l10n="U" oldref="76">The object catalog provides an overview of all modules and dialogs you have created in $[officename].</paragraph>
<paragraph role="paragraph" id="par_id3147346" xml-lang="en-US" l10n="U" oldref="78">Click the <emph>Object Catalog</emph> icon
-<image id="img_id3147341" src="res/commandimagelist/sc_objectcatalog.png" ><alt id="alt_id3147341" xml-lang="en-US">Icon</alt>
+<image id="img_id3147341" src="res/commandimagelist/sc_objectcatalog.png" width="0.564cm" height="0.564cm"><alt id="alt_id3147341" xml-lang="en-US">Icon</alt>
</image> in the Macro toolbar to display the object catalog.</paragraph>
<paragraph role="paragraph" id="par_id3155114" xml-lang="en-US" l10n="U" oldref="79">The dialog shows a list of all existing objects in a hierarchical representation. Double-clicking a list entry opens its subordinate objects.</paragraph>
<paragraph role="paragraph" id="par_id3150786" xml-lang="en-US" l10n="U" oldref="83">To display a certain module in the Editor or to position the cursor in a selected SUB or FUNCTION, select the corresponding entry and click the <emph>Show</emph> icon
-<image id="img_id3149527" src="basctl/res/im01.png" ><alt id="alt_id3149527" xml-lang="en-US">Icon</alt>
+<image id="img_id3149527" src="basctl/res/im01.png" width="0.564cm" height="0.564cm"><alt id="alt_id3149527" xml-lang="en-US">Icon</alt>
</image>.</paragraph>
<paragraph role="paragraph" id="par_id3153266" xml-lang="en-US" l10n="U" oldref="81">Click the (X) icon in the title bar to close the object catalog.</paragraph>
</section>
diff --git a/helpcontent2/source/text/sbasic/shared/01020300.xhp b/helpcontent2/source/text/sbasic/shared/01020300.xhp
index ceda2e2e5b..3f8b50016f 100644
--- a/helpcontent2/source/text/sbasic/shared/01020300.xhp
+++ b/helpcontent2/source/text/sbasic/shared/01020300.xhp
@@ -1,4 +1,4 @@
-<?xml version="1.0" encoding="UTF-8"?>
+<?xml version="1.0" encoding="UTF-8"?>
<!--***********************************************************************
*
* The Contents of this file are made available subject to the terms of
@@ -52,95 +52,86 @@
* Contributor(s): _______________________________________
*
*
- ************************************************************************-->
-
-<helpdocument version="1.0">
-<meta>
-<topic id="textsbasicshared01020300xml" indexer="include" status="PUBLISH">
-<title id="tit" xml-lang="en-US">Using Procedures and Functions</title>
-<filename>/text/sbasic/shared/01020300.xhp</filename>
-</topic>
-<history>
-<created date="2003-10-31T00:00:00">Sun Microsystems, Inc.</created>
-<lastedited date="2004-06-28T09:07:23">UFI: fixes #i24866#
-YJ: checked
-dedr: fixed #i30798#</lastedited>
-</history>
-</meta>
-<body>
+ ************************************************************************-->
+
+<helpdocument version="1.0">
+<meta>
+<topic id="textsbasicshared01020300xml" indexer="include" status="PUBLISH">
+<title id="tit" xml-lang="en-US">Using Procedures and Functions</title>
+<filename>/text/sbasic/shared/01020300.xhp</filename>
+</topic>
+<history>
+<created date="2003-10-31T00:00:00">Sun Microsystems, Inc.</created>
+<lastedited date="2004-09-01T14:50:17">UFI: fixes #i24866#
+YJ: checked
+dedr: fixed #i30798#</lastedited>
+</history>
+</meta>
+<body>
<section id="prozedur">
-<bookmark xml-lang="en-US" branch="index" id="bm_id3149456"><bookmark_value>procedures;using</bookmark_value>
+<bookmark xml-lang="en-US" branch="index" id="bm_id3149456"><bookmark_value>procedures</bookmark_value>
<bookmark_value>functions;using</bookmark_value>
-</bookmark>
-<paragraph role="heading" id="hd_id3149456" xml-lang="en-US" level="1" l10n="U" oldref="1"><link href="text/sbasic/shared/01020300.xhp">Using Procedures and Functions</link></paragraph>
-<paragraph role="paragraph" id="par_id3150767" xml-lang="en-US" l10n="U" oldref="2">The following describes the basic use of procedures and functions in $[officename] Basic.</paragraph>
-</section>
-<paragraph role="paragraph" id="par_id3154124" xml-lang="en-US" l10n="U" oldref="3">Procedures (SUBS) and functions (FUNCTIONS) help you maintaining a structured overview by separating a program into logical pieces.</paragraph>
+<bookmark_value>variables;passing to procedures and functions</bookmark_value>
+<bookmark_value>parameters;for procedures and functions</bookmark_value>
+<bookmark_value>parameters;passing by reference or value</bookmark_value>
+<bookmark_value>variables;scope</bookmark_value>
+<bookmark_value>scope of variables</bookmark_value>
+<bookmark_value>GLOBAL variables</bookmark_value>
+<bookmark_value>PUBLIC variables</bookmark_value>
+<bookmark_value>PRIVATE variables</bookmark_value>
+<bookmark_value>functions;return value type</bookmark_value>
+<bookmark_value>return value type of functions</bookmark_value>
+</bookmark>
+<paragraph role="heading" id="hd_id3149456" xml-lang="en-US" level="1" l10n="U" oldref="1"><link href="text/sbasic/shared/01020300.xhp">Using Procedures and Functions</link></paragraph>
+<paragraph role="paragraph" id="par_id3150767" xml-lang="en-US" l10n="U" oldref="2">The following describes the basic use of procedures and functions in $[officename] Basic.</paragraph>
+</section>
+<paragraph role="paragraph" id="par_id3154124" xml-lang="en-US" l10n="U" oldref="3">Procedures (SUBS) and functions (FUNCTIONS) help you maintaining a structured overview by separating a program into logical pieces.</paragraph>
<paragraph role="paragraph" id="par_id3153193" xml-lang="en-US" l10n="CHG" oldref="4">One benefit of procedures and functions is that, once you have developed a program code containing task components, you can use this code in another project.</paragraph>
-<bookmark xml-lang="en-US" branch="index" id="bm_id3153770"><bookmark_value>variables;passing to procedures and functions</bookmark_value>
-<bookmark_value>parameters;for procedures and functions</bookmark_value>
-<bookmark_value>procedures;parameters</bookmark_value>
-<bookmark_value>functions;parameters</bookmark_value>
-</bookmark>
-<paragraph role="heading" id="hd_id3153770" xml-lang="en-US" level="2" l10n="U" oldref="26">Passing Variables to Procedures (SUB) and Functions (FUNCTION)</paragraph>
-<paragraph role="paragraph" id="par_id3155414" xml-lang="en-US" l10n="U" oldref="27">Variables can be passed to both procedures and functions. The SUB or FUNCTION must be declared to expect parameters:</paragraph>
-<paragraph role="paragraph" id="par_id3163710" xml-lang="en-US" l10n="U" oldref="28">SUB SubName(<emph>Parameter1 As Type, Parameter2 As Type,...</emph>)</paragraph>
-<paragraph role="paragraph" id="par_id3151114" xml-lang="en-US" l10n="U" oldref="29">Program code</paragraph>
-<paragraph role="paragraph" id="par_id3146975" xml-lang="en-US" l10n="U" oldref="30">END SUB</paragraph>
-<paragraph role="paragraph" id="par_id3152577" xml-lang="en-US" l10n="U" oldref="31">The SUB is called using the following syntax:</paragraph>
-<paragraph role="paragraph" id="par_id3159154" xml-lang="en-US" l10n="U" oldref="32">SubName(Value1, Value2,...)</paragraph>
-<paragraph role="paragraph" id="par_id3147124" xml-lang="en-US" l10n="U" oldref="33">The parameters passed to a SUB must fit to those specified in the SUB declaration.</paragraph>
-<paragraph role="paragraph" id="par_id3147397" xml-lang="en-US" l10n="U" oldref="34">The same process applies to FUNCTIONS. In addition, functions always return a function result. The result of a function is defined by assigning the return value to the function name:</paragraph>
-<paragraph role="paragraph" id="par_id3149412" xml-lang="en-US" l10n="U" oldref="35">FUNCTION FunctionName(Parameter1 As Type, Parameter2 As Type,...) As Type</paragraph>
-<paragraph role="paragraph" id="par_id3156284" xml-lang="en-US" l10n="U" oldref="36">Program code</paragraph>
-<paragraph role="paragraph" id="par_id3145799" xml-lang="en-US" l10n="U" oldref="37">
-<emph>FunctionName=Result</emph>
-</paragraph>
-<paragraph role="paragraph" id="par_id3150716" xml-lang="en-US" l10n="U" oldref="38">End Function</paragraph>
-<paragraph role="paragraph" id="par_id3153839" xml-lang="en-US" l10n="U" oldref="39">The FUNCTION is called using the following syntax:</paragraph>
-<paragraph role="paragraph" id="par_id3146914" xml-lang="en-US" l10n="U" oldref="40">Variable=FunctionName(Parameter1, Parameter2,...)</paragraph>
-<paragraph role="tip" id="par_idN107B3" xml-lang="en-US">You can also use the fully qualified name to call a procedure or function:<br/>
-<item type="literal">Library.Module.Macro()</item>
-<br/> For example, to call the Autotext macro from the Gimmicks library, use the following command:<br/>
-<item type="literal">Gimmicks.AutoText.Main()</item>
+<paragraph role="heading" id="hd_id3153770" xml-lang="en-US" level="2" l10n="U" oldref="26">Passing Variables to Procedures (SUB) and Functions (FUNCTION)</paragraph>
+<paragraph role="paragraph" id="par_id3155414" xml-lang="en-US" l10n="U" oldref="27">Variables can be passed to both procedures and functions. The SUB or FUNCTION must be declared to expect parameters:</paragraph>
+<paragraph role="code" id="par_id3163710" xml-lang="en-US" l10n="U" oldref="28">SUB SubName(<emph>Parameter1 As Type, Parameter2 As Type,...</emph>)</paragraph>
+<paragraph role="code" id="par_id3151114" xml-lang="en-US" l10n="U" oldref="29">Program code</paragraph>
+<paragraph role="code" id="par_id3146975" xml-lang="en-US" l10n="U" oldref="30">END SUB</paragraph>
+<paragraph role="paragraph" id="par_id3152577" xml-lang="en-US" l10n="U" oldref="31">The SUB is called using the following syntax:</paragraph>
+<paragraph role="code" id="par_id3159154" xml-lang="en-US" l10n="U" oldref="32">SubName(Value1, Value2,...)</paragraph>
+<paragraph role="paragraph" id="par_id3147124" xml-lang="en-US" l10n="U" oldref="33">The parameters passed to a SUB must fit to those specified in the SUB declaration.</paragraph>
+<paragraph role="paragraph" id="par_id3147397" xml-lang="en-US" l10n="U" oldref="34">The same process applies to FUNCTIONS. In addition, functions always return a function result. The result of a function is defined by assigning the return value to the function name:</paragraph>
+<paragraph role="code" id="par_id3149412" xml-lang="en-US" l10n="U" oldref="35">FUNCTION FunctionName(Parameter1 As Type, Parameter2 As Type,...) As Type</paragraph>
+<paragraph role="code" id="par_id3156284" xml-lang="en-US" l10n="U" oldref="36">Program code</paragraph>
+<paragraph role="code" id="par_id3145799" xml-lang="en-US" l10n="U" oldref="37">
+<emph>FunctionName=Result</emph>
</paragraph>
-<bookmark xml-lang="en-US" branch="index" id="bm_id3156276"><bookmark_value>parameters;pass by reference</bookmark_value>
-<bookmark_value>parameters;pass by value</bookmark_value>
-</bookmark>
-<paragraph role="heading" id="hd_id3156276" xml-lang="en-US" level="2" l10n="U" oldref="45">Passing Variables by Value or Reference</paragraph>
-<paragraph role="paragraph" id="par_id3155765" xml-lang="en-US" l10n="U" oldref="47">Parameters can be passed to a SUB or a FUNCTION either by reference or by value. Unless otherwise specified, a parameter is always passed by reference. That means that a SUB or a FUNCTION gets the parameter and can read and modify its value.</paragraph>
-<paragraph role="paragraph" id="par_id3145640" xml-lang="en-US" l10n="U" oldref="53">If you want to pass a parameter by value insert the key word "ByVal" in front of the parameter when you call a SUB or FUNCTION, for example:</paragraph>
-<paragraph role="paragraph" id="par_id3150042" xml-lang="en-US" l10n="U" oldref="54">Result = Function(<emph>ByVal</emph> Parameter)</paragraph>
-<paragraph role="paragraph" id="par_id3149258" xml-lang="en-US" l10n="U" oldref="55">In this case, the original content of the parameter will not be modified by the FUNCTION since it only gets the value and not the parameter itself.</paragraph>
+<paragraph role="code" id="par_id3150716" xml-lang="en-US" l10n="U" oldref="38">End Function</paragraph>
+<paragraph role="paragraph" id="par_id3153839" xml-lang="en-US" l10n="U" oldref="39">The FUNCTION is called using the following syntax:</paragraph>
+<paragraph role="code" id="par_id3146914" xml-lang="en-US" l10n="U" oldref="40">Variable=FunctionName(Parameter1, Parameter2,...)</paragraph>
+<paragraph role="tip" id="par_idN107B3" xml-lang="en-US">You can also use the fully qualified name to call a procedure or function:<br/>
+<item type="literal">Library.Module.Macro()</item>
+<br/> For example, to call the Autotext macro from the Gimmicks library, use the following command:<br/>
+<item type="literal">Gimmicks.AutoText.Main()</item>
+</paragraph>
+<paragraph role="heading" id="hd_id3156276" xml-lang="en-US" level="2" l10n="U" oldref="45">Passing Variables by Value or Reference</paragraph>
+<paragraph role="paragraph" id="par_id3155765" xml-lang="en-US" l10n="U" oldref="47">Parameters can be passed to a SUB or a FUNCTION either by reference or by value. Unless otherwise specified, a parameter is always passed by reference. That means that a SUB or a FUNCTION gets the parameter and can read and modify its value.</paragraph>
+<paragraph role="paragraph" id="par_id3145640" xml-lang="en-US" l10n="U" oldref="53">If you want to pass a parameter by value insert the key word "ByVal" in front of the parameter when you call a SUB or FUNCTION, for example:</paragraph>
+<paragraph role="code" id="par_id3150042" xml-lang="en-US" l10n="U" oldref="54">Result = Function(<emph>ByVal</emph> Parameter)</paragraph>
+<paragraph role="paragraph" id="par_id3149258" xml-lang="en-US" l10n="U" oldref="55">In this case, the original content of the parameter will not be modified by the FUNCTION since it only gets the value and not the parameter itself.</paragraph>
<paragraph role="note" id="par_id3151215" xml-lang="en-US" l10n="U" oldref="56">When you create a new module, $[officename] Basic automatically inserts a SUB called "Main". This default name has nothing to do with the order or the starting point of a $[officename] Basic project. You can also safely rename this SUB.</paragraph>
-<bookmark xml-lang="en-US" branch="index" id="bm_id3150982"><bookmark_value>variables;scope</bookmark_value>
-<bookmark_value>scope;variables</bookmark_value>
-</bookmark>
-<paragraph role="heading" id="hd_id3150982" xml-lang="en-US" level="2" l10n="U" oldref="57">Scope of Variables</paragraph>
-<paragraph role="paragraph" id="par_id3149814" xml-lang="en-US" l10n="U" oldref="58">A variable defined within a SUB or FUNCTION, only remains valid until the procedure is exited. This is known as a "local" variable. In many cases, you need a variable to be valid in all procedures, in every module of all libraries, or after a SUB or FUNCTION is exited. This property is controlled in a variable declaration through key words in the <emph>Dim</emph> statement.</paragraph>
+<paragraph role="heading" id="hd_id3150982" xml-lang="en-US" level="2" l10n="U" oldref="57">Scope of Variables</paragraph>
+<paragraph role="paragraph" id="par_id3149814" xml-lang="en-US" l10n="U" oldref="58">A variable defined within a SUB or FUNCTION, only remains valid until the procedure is exited. This is known as a "local" variable. In many cases, you need a variable to be valid in all procedures, in every module of all libraries, or after a SUB or FUNCTION is exited. This property is controlled in a variable declaration through key words in the <emph>Dim</emph> statement.</paragraph>
<paragraph role="heading" id="hd_id3154186" xml-lang="en-US" level="3" l10n="U" oldref="59">Declaring Variables Outside a SUB or FUNCTION</paragraph>
-<bookmark xml-lang="en-US" branch="index" id="bm_id2809017"><bookmark_value>GLOBAL</bookmark_value>
-</bookmark>
-<paragraph role="paragraph" id="par_id3150208" xml-lang="en-US" l10n="U" oldref="111">DIM GLOBAL VarName As TYPENAME</paragraph>
+<paragraph role="code" id="par_id3150208" xml-lang="en-US" l10n="U" oldref="111">DIM GLOBAL VarName As TYPENAME</paragraph>
<paragraph role="paragraph" id="par_id3145258" xml-lang="en-US" l10n="U" oldref="112">The variable is valid as long as the $[officename] session lasts.</paragraph>
-<bookmark xml-lang="en-US" branch="index" id="bm_id2821445"><bookmark_value>PUBLIC</bookmark_value>
-</bookmark>
-<paragraph role="paragraph" id="par_id3153198" xml-lang="en-US" l10n="U" oldref="60">DIM PUBLIC VarName As TYPENAME</paragraph>
+<paragraph role="code" id="par_id3153198" xml-lang="en-US" l10n="U" oldref="60">DIM PUBLIC VarName As TYPENAME</paragraph>
<paragraph role="paragraph" id="par_id3150088" xml-lang="en-US" l10n="U" oldref="61">The variable is valid in all modules.</paragraph>
-<bookmark xml-lang="en-US" branch="index" id="bm_id2814625"><bookmark_value>PRIVATE</bookmark_value>
-</bookmark>
-<paragraph role="paragraph" id="par_id3158212" xml-lang="en-US" l10n="U" oldref="62">DIM PRIVATE VarName As TYPENAME</paragraph>
-<paragraph role="paragraph" id="par_id3152994" xml-lang="en-US" l10n="U" oldref="63">The variable is only valid in this module.</paragraph>
-<paragraph role="paragraph" id="par_id3150886" xml-lang="en-US" l10n="U" oldref="64">DIM VarName As TYPENAME</paragraph>
-<paragraph role="paragraph" id="par_id3150368" xml-lang="en-US" l10n="U" oldref="65">The variable is only valid in this module.</paragraph>
-<paragraph role="heading" id="hd_id3154368" xml-lang="en-US" level="3" l10n="U" oldref="66">Saving Variable Content after Exiting a SUB or FUNCTION</paragraph>
-<paragraph role="paragraph" id="par_id3156288" xml-lang="en-US" l10n="U" oldref="67">DIM STATIC VarName As TYPENAME</paragraph>
+<paragraph role="code" id="par_id3158212" xml-lang="en-US" l10n="U" oldref="62">DIM PRIVATE VarName As TYPENAME</paragraph>
+<paragraph role="paragraph" id="par_id3152994" xml-lang="en-US" l10n="U" oldref="63">The variable is only valid in this module.</paragraph>
+<paragraph role="code" id="par_id3150886" xml-lang="en-US" l10n="U" oldref="64">DIM VarName As TYPENAME</paragraph>
+<paragraph role="paragraph" id="par_id3150368" xml-lang="en-US" l10n="U" oldref="65">The variable is only valid in this module.</paragraph>
+<paragraph role="heading" id="hd_id3154368" xml-lang="en-US" level="3" l10n="U" oldref="66">Saving Variable Content after Exiting a SUB or FUNCTION</paragraph>
+<paragraph role="code" id="par_id3156288" xml-lang="en-US" l10n="U" oldref="67">DIM STATIC VarName As TYPENAME</paragraph>
<paragraph role="paragraph" id="par_id3154486" xml-lang="en-US" l10n="U" oldref="68">The variable retains its value until the next time the FUNCTION or SUB is entered. The declaration must exist inside a SUB or a FUNCTION.</paragraph>
-<bookmark xml-lang="en-US" branch="index" id="bm_id3155809"><bookmark_value>functions;return value type</bookmark_value>
-</bookmark>
-<paragraph role="heading" id="hd_id3155809" xml-lang="en-US" level="2" l10n="U" oldref="41">Specifying the Return Value Type of a FUNCTION</paragraph>
-<paragraph role="paragraph" id="par_id3149404" xml-lang="en-US" l10n="U" oldref="42">As with variables, include a type-declaration character after the function name, or the type indicated by "As" and the corresponding key word at the end of the parameter list to define the type of the function's return value, for example:</paragraph>
-<paragraph role="paragraph" id="par_id3152899" xml-lang="en-US" l10n="U" oldref="43">Function WordCount(WordText as String) <emph>as Integer</emph>
-</paragraph>
-</body>
-</helpdocument>
+<paragraph role="heading" id="hd_id3155809" xml-lang="en-US" level="2" l10n="U" oldref="41">Specifying the Return Value Type of a FUNCTION</paragraph>
+<paragraph role="paragraph" id="par_id3149404" xml-lang="en-US" l10n="U" oldref="42">As with variables, include a type-declaration character after the function name, or the type indicated by "As" and the corresponding key word at the end of the parameter list to define the type of the function's return value, for example:</paragraph>
+<paragraph role="code" id="par_id3152899" xml-lang="en-US" l10n="U" oldref="43">Function WordCount(WordText as String) <emph>as Integer</emph>
+</paragraph>
+</body>
+</helpdocument>