From 441f600d210bd69e4c485c1520eff55a42aa0a2c Mon Sep 17 00:00:00 2001 From: Alain Romedenne Date: Wed, 23 Jan 2019 19:02:00 -0200 Subject: 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 --- source/text/sbasic/shared/classmodule.xhp | 60 +++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 source/text/sbasic/shared/classmodule.xhp (limited to 'source/text/sbasic/shared/classmodule.xhp') 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 @@ + + + + + + Option ClassModule + /text/sbasic/shared/classmodule.xhp + + + + + Option ClassModule + +

Option ClassModule Statement

+ Specifies that the module is a class module that contains members, properties, procedures and functions. + + Option ClassModule + + This statement must be added before the executable program code in a module. + This statement must be used jointly with Option Compatible statement or Option VBASupport 1, the former is enabling VBA compatibility mode, while the latter is enforcing VBA support on top of compatibility. + + + Option Compatible + Option ClassModule + + ' Optional members go here + + Private Sub Class_Initialize() + ' Optional construction code goes here + End Sub ' Constructor + Private Sub Class_Terminate() + ' Optional destruction code goes here + End Sub ' Destructor + + ' Properties go here. + + ' Procedures & functions go here. + + +
+ + Refer to Identifying the Operating System and Getting Session Information for class module simple examples. + + + Multiple thorough class examples are available from Access2Base shared Basic library. + + + + + +
+ +
-- cgit