From 06f78d9927f3d8bd56583fce3181eae19568e3e0 Mon Sep 17 00:00:00 2001
From: Laurent Balland-Poirier
Date: Wed, 17 May 2017 22:25:57 +0200
Subject: Basic: merge identical def and example Defxxx
Change-Id: I64abb89958c823d636c402ad4fee1f008742b491
Reviewed-on: https://gerrit.libreoffice.org/37789
Reviewed-by: Olivier Hallot
Tested-by: Olivier Hallot
(cherry picked from commit fc04019be5ce20fe8acd95e1cc41ba099dd51cb0)
Reviewed-on: https://gerrit.libreoffice.org/37828
---
source/text/sbasic/shared/03101100.xhp | 10 +++++++---
source/text/sbasic/shared/03101110.xhp | 27 +++++----------------------
source/text/sbasic/shared/03101120.xhp | 24 +++---------------------
source/text/sbasic/shared/03101130.xhp | 24 +++---------------------
source/text/sbasic/shared/03101140.xhp | 24 +++---------------------
source/text/sbasic/shared/03101300.xhp | 24 +++---------------------
source/text/sbasic/shared/03101400.xhp | 24 +++---------------------
source/text/sbasic/shared/03101500.xhp | 24 +++---------------------
source/text/sbasic/shared/03101600.xhp | 24 +++---------------------
source/text/sbasic/shared/03101700.xhp | 27 +++++----------------------
10 files changed, 38 insertions(+), 194 deletions(-)
diff --git a/source/text/sbasic/shared/03101100.xhp b/source/text/sbasic/shared/03101100.xhp
index 4559a5ed82..75d19629b4 100644
--- a/source/text/sbasic/shared/03101100.xhp
+++ b/source/text/sbasic/shared/03101100.xhp
@@ -27,17 +27,16 @@
-
DefBool statement
-
DefBool Statement [Runtime]If no type-declaration character or keyword is specified, the DefBool statement sets the default data type for variables, according to a letter range.
+Syntax:Defxxx Characterrange1[, Characterrange2[,...]]
@@ -47,8 +46,10 @@
Characterrange: Letters that specify the range of variables that you want to set the default data type for.xxx: Keyword that defines the default variable type:Keyword: Default variable type
+DefBool: Boolean
+Example:' Prefix definition for variable types:
@@ -59,10 +60,13 @@
DefLng lDefObj oDefVar v
+
+
+Sub ExampleDefBool bOK=TRUE ' bOK is an implicit boolean variableEnd Sub
-
\ No newline at end of file
+
diff --git a/source/text/sbasic/shared/03101110.xhp b/source/text/sbasic/shared/03101110.xhp
index 71248ee41f..184787d8a8 100644
--- a/source/text/sbasic/shared/03101110.xhp
+++ b/source/text/sbasic/shared/03101110.xhp
@@ -35,34 +35,17 @@
DefCur Statement [Runtime]If no type-declaration character or keyword is specified, the DefCur statement sets the default variable type, according to a letter range.
-Syntax:
-
-Defxxx Characterrange1[, Characterrange2[,...]]
-
-Parameters:
-
-Characterrange: Letters that specify the range of variables that you want to set a default data type for.
-
-xxx: Keyword that defines the default variable type:
-
-Keyword: Default variable type
+
+
DefCur: Currency
-Example:
+
+
-REM Prefix definitions for variable types:
-DefBool b
-DefDate t
-DefDbL d
-DefInt i
-DefLng l
-DefObj o
-DefVar vDefCur cSub ExampleDefCur
- cCur=Currency REM cCur is an implicit currency variable
+ cCur=Currency ' cCur is an implicit currency variableEnd Sub
-
DefErr statement
-
DefErr Statement [Runtime]If no type-declaration character or keyword is specified, the DefErr statement sets the default variable type, according to a letter range.
-Syntax:
-
-Defxxx Characterrange1[, Characterrange2[,...]]
-
-
-Parameters:
-Characterrange: Letters that specify the range of variables that you want to set a default data type for.
-xxx: Keyword that defines the default variable type:
-Keyword: Default variable type
+
DefErr: Error
-Example:
+
-' Prefix definitions for variable types:
-DefBool b
-DefDate t
-DefDbl d
-DefInt i
-DefLng l
-DefObj o
-DefVar vDefErr eSub ExampleDefErr eErr=Error ' eErr is an implicit error variable
@@ -66,4 +48,4 @@
-
DefSng statement
-
DefSng Statement [Runtime]If no type-declaration character or keyword is specified, the DefSng statement sets the default variable type, according to a letter range.
-Syntax:
-
-Defxxx Characterrange1[, Characterrange2[,...]]
-
-
-Parameters:
-Characterrange: Letters that specify the range of variables that you want to set a default data type for.
-xxx: Keyword that defines the default variable type:
-Keyword: Default variable type
+
DefSng: Single
-Example:
+
-' Prefix definitions for variable types:
-DefBool b
-DefDate t
-DefDbl d
-DefInt i
-DefLng l
-DefObj o
-DefVar vDefSng sSub ExampleDefSng sSng=Single ' sSng is an implicit single variable
@@ -66,4 +48,4 @@
-
DefStr statement
-
DefStr Statement [Runtime]If no type-declaration character or keyword is specified, the DefStr statement sets the default variable type, according to a letter range.
-Syntax:
-
-Defxxx Characterrange1[, Characterrange2[,...]]
-
-
-Parameters:
-Characterrange: Letters that specify the range of variables that you want to set a default data type for.
-xxx: Keyword that defines the default variable type:
-Keyword: Default variable type
+
DefStr: String
-Example:
+
-' Prefix definitions for variable types:
-DefBool b
-DefDate t
-DefDbl d
-DefInt i
-DefLng l
-DefObj o
-DefVar vDefStr sSub ExampleDefStr sStr=String ' sStr is an implicit string variable
@@ -66,4 +48,4 @@
-
DefDate statement
-
DefDate Statement [Runtime]If no type-declaration character or keyword is specified, the DefDate statement sets the default variable type, according to a letter range.
-Syntax:
-
-Defxxx Characterrange1[, Characterrange2[,...]]
-
-
-Parameters:
-Characterrange: Letters that specify the range of variables that you want to set a default data type for.
-xxx: Keyword that defines the default variable type:
-Keyword: Default variable type
+
DefDate: Date
-Example:
+
-' Prefix definitions for variable types:
-DefBool b
-DefDate t
-DefDbl d
-DefInt i
-DefLng l
-DefObj o
-DefVar vSub ExampleDefDate tDate=Date ' tDate is an implicit date variableEnd Sub
-
DefDbl statement
-
DefDbl Statement [Runtime]Sets the default variable type, according to a letter range, if no type-declaration character or keyword is specified.
-Syntax:
-
-Defxxx Characterrange1[, Characterrange2[,...]]
-
-
-Parameters:
-Characterrange: Letters that specify the range of variables that you want to set the default data type for.
-xxx: Keyword that defines the default variable type:
-Keyword: Default variable type
+
DefDbl: Double
-Example:
+
-' Prefix definitions for variable types:
-DefBool b
-DefDate t
-DefDbl d
-DefInt i
-DefLng l
-DefObj o
-DefVar vSub ExampleDefDBL dValue=1.23e43 ' dValue is an implicit double variable typeEnd Sub
-
DefInt statement
-
DefInt Statement [Runtime]Sets the default variable type, according to a letter range, if no type-declaration character or keyword is specified.
-Syntax:
-
-Defxxx Characterrange1[, Characterrange2[,...]]
-
-
-Parameters:
-Characterrange: Letters that specify the range of variables that you want to set a default data type for.
-xxx: Keyword that defines the default variable type:
-Keyword: Default variable type
+
DefInt: Integer
-Example:
+
-' Prefix definitions for variable types
-DefBool b
-DefDate t
-DefDbl d
-DefInt i
-DefLng l
-DefObj o
-DefVar vSub ExampleDefInt iCount=200 ' iCount is an implicit integer variableEnd Sub
-
DefLng statement
-
DefLng Statement [Runtime]Sets the default variable type, according to a letter range, if no type-declaration character or keyword is specified.
-Syntax:
-
-Defxxx Characterrange1[, Characterrange2[,...]]
-
-
-Parameters:
-Characterrange: Letters that specify the range of variables that you want to set the default data type for.
-xxx: Keyword that defines the default variable type:
-Keyword: Default variable type
+
DefLng: Long
-Example:
+
-' Prefix definitions for variable types:
-DefBool b
-DefDate t
-DefDbl d
-DefInt i
-DefLng l
-DefObj o
-DefVar vSub ExampleDefLng lCount=123456789 ' lCount is an implicit long integer variableEnd Sub