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/00000003.xhp | 3 ++
source/text/sbasic/shared/03090407.xhp | 14 +++---
source/text/sbasic/shared/03103200.xhp | 13 +++---
source/text/sbasic/shared/03103300.xhp | 15 +++----
source/text/sbasic/shared/03103350.xhp | 20 ++++-----
source/text/sbasic/shared/classmodule.xhp | 60 +++++++++++++++++++++++++
source/text/sbasic/shared/compatible.xhp | 73 +++++++++++++++++++++++++++++++
7 files changed, 161 insertions(+), 37 deletions(-)
create mode 100644 source/text/sbasic/shared/classmodule.xhp
create mode 100644 source/text/sbasic/shared/compatible.xhp
(limited to 'source/text')
diff --git a/source/text/sbasic/shared/00000003.xhp b/source/text/sbasic/shared/00000003.xhp
index a56925dcde..fd5df791d7 100644
--- a/source/text/sbasic/shared/00000003.xhp
+++ b/source/text/sbasic/shared/00000003.xhp
@@ -189,6 +189,9 @@
This function or constant is enabled with the statement Option VBASupport 1 placed before the executable program code in a module.
+
+ This statement must be added before the executable program code in a module.
+Syntax:
diff --git a/source/text/sbasic/shared/03090407.xhp b/source/text/sbasic/shared/03090407.xhp
index bdfb4784c0..360c6fbdd1 100644
--- a/source/text/sbasic/shared/03090407.xhp
+++ b/source/text/sbasic/shared/03090407.xhp
@@ -35,21 +35,19 @@
-Rem Statement
+
Rem Statement
Specifies that a program line is a comment.
-Syntax:
-
-Rem Text
-
+
+Rem Text
-Parameters:
+
Text: Any text that serves as a comment.You can use the single quotation mark instead of the Rem keyword to indicate that the text on a line is comments. This symbol can be inserted directly to the right of the program code, followed by a comment.You can use a space followed by the underline character _ as the last two characters of a line to continue the logical line on the next line. To continue comment lines, you must enter "Option Compatible" in the same Basic module.
-Example:
+
Sub ExampleMidDim sVar As String
@@ -60,4 +58,4 @@
Specifies that %PRODUCTNAME Basic will support some VBA statements, functions and objects.The support for VBA is not complete, but covers a large portion of the common usage patterns.
-Syntax:
-
-Option VBASupport {1|0}
-
+
+Option VBASupport {1|0}
+
+
+
-Parameters:
-This statement must be added before the executable program code in a module.1: Enable VBA support in %PRODUCTNAME0: Disable VBA support
-Example:
+
Option VBASupport 1Sub ExampleVBA
@@ -67,5 +64,4 @@
VBA support in %PRODUCTNAME