diff options
author | Alain Romedenne <pyoffice.romedenne@sfr.fr> | 2019-01-23 19:02:00 -0200 |
---|---|---|
committer | Olivier Hallot <olivier.hallot@libreoffice.org> | 2019-01-24 11:50:31 +0100 |
commit | 441f600d210bd69e4c485c1520eff55a42aa0a2c (patch) | |
tree | 686bd3cececf1bd001af7fa84e6331554044a9a1 /source/text/sbasic/shared/classmodule.xhp | |
parent | 85757c5b58b7fed1535d787053d4361d32e1374c (diff) |
tdf#114263 Undocumented BASIC Options
Option Compatible
Option ClassModule
Change-Id: Ieb07fddb216f4f8cc26089a30226da5760b0065e
Reviewed-on: https://gerrit.libreoffice.org/66824
Tested-by: Jenkins
Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
Diffstat (limited to 'source/text/sbasic/shared/classmodule.xhp')
-rw-r--r-- | source/text/sbasic/shared/classmodule.xhp | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/source/text/sbasic/shared/classmodule.xhp b/source/text/sbasic/shared/classmodule.xhp new file mode 100644 index 0000000000..a6ddac7386 --- /dev/null +++ b/source/text/sbasic/shared/classmodule.xhp @@ -0,0 +1,60 @@ +<?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/ClassModule"> + <title id="tit" xml-lang="en-US">Option ClassModule</title> + <filename>/text/sbasic/shared/classmodule.xhp</filename> + </topic> + </meta> + <body> + <bookmark branch="index" id="N0082"> + <bookmark_value>Option ClassModule</bookmark_value> + </bookmark> + <h1 id="N0083"><variable id="classmodulestatement"><link href="text/sbasic/shared/classmodule.xhp" name="option classmodule">Option ClassModule Statement</link></variable></h1> + <paragraph role="paragraph" id="N0084">Specifies that the module is a class module that contains members, properties, procedures and functions.</paragraph> + <embed href="text/sbasic/shared/00000003.xhp#functsyntax"/> + <paragraph role="code" id="N0086">Option ClassModule</paragraph> + <embed href="text/sbasic/shared/00000003.xhp#functparameters"/> + <warning id="N0088">This statement must be added before the executable program code in a module.</warning> + <paragraph role="paragraph" id="N0089">This statement must be used jointly with <literal>Option Compatible</literal> statement or <literal>Option VBASupport 1</literal>, the former is enabling VBA compatibility mode, while the latter is enforcing VBA support on top of compatibility.</paragraph> + <embed href="text/sbasic/shared/00000003.xhp#functexample"/> + <bascode> + <paragraph role="bascode" localize="false" id="N0092">Option Compatible</paragraph> + <paragraph role="bascode" localize="false" id="N0093">Option ClassModule</paragraph> + <paragraph role="bascode" localize="false" id="N0094"> </paragraph> + <paragraph role="bascode" xml-lang="en-US" id="N0095">' Optional members go here</paragraph> + <paragraph role="bascode" localize="false" id="N0096"> </paragraph> + <paragraph role="bascode" localize="false" id="N0097">Private Sub Class_Initialize()</paragraph> + <paragraph role="bascode" xml-lang="en-US" id="N0098"> ' Optional construction code goes here</paragraph> + <paragraph role="bascode" xml-lang="en-US" id="N0099">End Sub ' Constructor</paragraph> + <paragraph role="bascode" localize="false" id="N0100">Private Sub Class_Terminate()</paragraph> + <paragraph role="bascode" xml-lang="en-US" id="N0101"> ' Optional destruction code goes here</paragraph> + <paragraph role="bascode" xml-lang="en-US" id="N0102">End Sub ' Destructor</paragraph> + <paragraph role="bascode" localize="false" id="N0103"> </paragraph> + <paragraph role="bascode" xml-lang="en-US" id="N0104">' Properties go here.</paragraph> + <paragraph role="bascode" localize="false" id="N0105"> </paragraph> + <paragraph role="bascode" xml-lang="en-US" id="N0106">' Procedures & functions go here.</paragraph> + <paragraph role="bascode" localize="false" id="N0107"> </paragraph> + </bascode> + <section id="relatedtopics" > + <paragraph role="paragraph" id="N0108"> + Refer to <link href="text/sbasic/python/python_platform.xhp">Identifying the Operating System</link> and <link href="text/sbasic/python/python_session.xhp">Getting Session Information</link> for class module simple examples. + </paragraph> + <paragraph role="paragraph" id="N0109"> + Multiple thorough class examples are available from <link href="text/sbasic/guide/access2base.xhp">Access2Base shared Basic library</link>. + </paragraph> + <embed href="text/sbasic/shared/03103200.xhp#optionbasestatement"/> + <embed href="text/sbasic/shared/03103300.xhp#explicitstatement"/> + <embed href="text/sbasic/shared/03103350.xhp#vbasupportstatement"/> + <embed href="text/sbasic/shared/compatible.xhp#compatiblestatement"/> + </section> + </body> +</helpdocument> |