summaryrefslogtreecommitdiffstats
path: root/helpcontent2/source/text/sbasic/shared/Compiler_options.xhp
blob: 675c1891ceb0b8f8d9fb40f66977f6bd8ecb3ea6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<?xml version="1.0" encoding="UTF-8"?>
<helpdocument version="1.0">
    <!--
    * This file is part of the LibreOffice project.
    *
    * This Source Code Form is subject to the terms of the Mozilla Public
    * License, v. 2.0. If a copy of the MPL was not distributed with this
    * file, You can obtain one at http://mozilla.org/MPL/2.0/.
    *
    -->
   <meta>
      <topic id="text/sbasic/shared/compiler">
         <title id="tit" xml-lang="en-US">Compiler Options</title>
         <filename>/text/sbasic/shared/Compiler_options.xhp</filename>
      </topic>
   </meta>
   <body>
      <bookmark branch="index" id="bm_id681592403821304">
         <bookmark_value>Compiler Options</bookmark_value>
         <bookmark_value>Runtime conditions</bookmark_value>
      </bookmark>

   <section id="classmodulefunction">
      <h1 id="hd_id951592401835244"><variable id="compileroptions"><link href="text/sbasic/shared/Compiler_options.xhp" name="Compiler Options">Compiler Options, Runtime Conditions</link></variable></h1>
      <paragraph role="paragraph" id="N0084">Compiler options specified at the module level affect %PRODUCTNAME <emph>Basic compiler checks</emph> and error messages. Basic syntax as well as Basic set of instructions can be different according to the options that are in use. The less <literal>Option</literal>, the easiest and tolerant %PRODUCTNAME Basic language is. The more <literal>Option</literal>, the richer and controlled Basic language gets.</paragraph>
   </section>
      <note id="par_id141592406254504">Compiler options must be specified before the executable program code in a module.</note>
      <embed href="text/sbasic/shared/00000003.xhp#functsyntax"/>
      <paragraph role="paragraph" id="par_id491585753339474"><image src="media/helpimg/sbasic/Option_statement.svg" id="img_id4156296484514"><alt xml-lang="en-US" id="alt_id15152796484514">Option Statement diagram</alt></image></paragraph>
     
      <embed href="text/sbasic/shared/03103200.xhp#optionbase"/>
      <embed href="text/sbasic/shared/classmodule.xhp#classmodulefunction"/>
      <embed href="text/sbasic/shared/compatible.xhp#optioncompatiblestatement"/>
      <embed href="text/sbasic/shared/compatibilitymode.xhp#compatibilitymodefunction"/>
      <embed href="text/sbasic/shared/03103300.xhp#optionexplicit"/>
     
      <h2 id="hd_id331592403410631">Option Private Module</h2>
      <paragraph role="paragraph" id="par_id161592405163812">Specifies that the scope of the module is that of the Basic library it belongs to.</paragraph>
      <embed href="text/sbasic/shared/03103350.xhp#optionVBASupport"/>
      <warning id="par_id141592408035462">Options specified at the module level also affect %PRODUCTNAME <emph>Basic runtime conditions</emph>. The behaviour of %PRODUCTNAME Basic instructions can differ.</warning>

   <section id="relatedtopics" >
      <paragraph role="paragraph" id="par_id291592407073335"><link href="text/sbasic/shared/property.xhp" name="Property statement">Property statement</link></paragraph>
      <embed href="text/sbasic/shared/special_vba_func.xhp#exclusivevba"/>
      <embed href="text/sbasic/shared/ErrVBA.xhp#ErrVBAh1"/>
   </section>

   </body>
</helpdocument>