From ed5640d8b587fbcfed7dd7967f3de04b37a76f26 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 11:06:44 +0200 Subject: Adding upstream version 4:7.4.7. Signed-off-by: Daniel Baumann --- .../source/text/sbasic/shared/03101100.xhp | 79 ++++++++++++++++++++++ 1 file changed, 79 insertions(+) create mode 100644 helpcontent2/source/text/sbasic/shared/03101100.xhp (limited to 'helpcontent2/source/text/sbasic/shared/03101100.xhp') diff --git a/helpcontent2/source/text/sbasic/shared/03101100.xhp b/helpcontent2/source/text/sbasic/shared/03101100.xhp new file mode 100644 index 000000000..811494ccb --- /dev/null +++ b/helpcontent2/source/text/sbasic/shared/03101100.xhp @@ -0,0 +1,79 @@ + + + + + + + DefBool Statement + /text/sbasic/shared/03101100.xhp + + + + + +
+ + DefBool statement + + +

DefBool Statement

+If no type-declaration character or keyword is specified, the DefBool statement sets the default data type for variables, according to a letter range. +
+ +
+ + + DefType statements diagram + + + {DefBool|DefCur|DefDate|DefDbl|DefErr|DefInt|DefLng|DefObj|DefStr|DefSng|DefVar} {char|char-char}[,...] + + + + + char: Letter prefix that specifies default data type for variables. + char-char: Letter range prefixes that specify default data type for variables. +
+ +
+ + + ' Prefix definitions for variable types: + DefBool b + DefCur c,l-m + DefDate t + DefDbl f + DefErr e + DefInt i-k,N + DefLng x-z, D + DefObj U, o-R + DefSng w,a + DefStr s + DefVar V,g + +
+ + Sub ExampleDefBool + Print TypeName(Boole), VarType(Babbage), bitcoin ' Displays: Boolean 11 False + bOK=True ' bOK is an implicit boolean variable + End Sub + + + +
-- cgit v1.2.3