diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 09:06:44 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 09:06:44 +0000 |
commit | ed5640d8b587fbcfed7dd7967f3de04b37a76f26 (patch) | |
tree | 7a5f7c6c9d02226d7471cb3cc8fbbf631b415303 /helpcontent2/source/text/sbasic/shared/classmodule.xhp | |
parent | Initial commit. (diff) | |
download | libreoffice-ed5640d8b587fbcfed7dd7967f3de04b37a76f26.tar.xz libreoffice-ed5640d8b587fbcfed7dd7967f3de04b37a76f26.zip |
Adding upstream version 4:7.4.7.upstream/4%7.4.7upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'helpcontent2/source/text/sbasic/shared/classmodule.xhp')
-rw-r--r-- | helpcontent2/source/text/sbasic/shared/classmodule.xhp | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/helpcontent2/source/text/sbasic/shared/classmodule.xhp b/helpcontent2/source/text/sbasic/shared/classmodule.xhp new file mode 100644 index 000000000..df14f9ad7 --- /dev/null +++ b/helpcontent2/source/text/sbasic/shared/classmodule.xhp @@ -0,0 +1,63 @@ +<?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" localize="false" xml-lang="en-US">Option ClassModule</title> + <filename>/text/sbasic/shared/classmodule.xhp</filename> + </topic> + </meta> + <body> + <bookmark branch="index" id="N0082" localize="false"> + <bookmark_value>Option ClassModule</bookmark_value> + </bookmark> + + <section id="classmodulefunction"> + <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> + </section> + <embed href="text/sbasic/shared/00000003.xhp#beforeexecutable"/> + <embed href="text/sbasic/shared/00000003.xhp#functparameters"/> + <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#functsyntax"/> + <paragraph role="code" localize="false" id="N0086">Option ClassModule</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> |