source/text/sbasic/shared/03102800.xhp |   28 +++++++++++++++++++++++-----
 1 file changed, 23 insertions(+), 5 deletions(-)

New commits:
commit 8a9eeb535a80d07fa6f7b1d495544b95a045819c
Author:     LibreOfficiant <[email protected]>
AuthorDate: Mon Dec 9 09:56:40 2019 +0100
Commit:     Olivier Hallot <[email protected]>
CommitDate: Mon Dec 9 14:55:58 2019 +0100

    extra warnings for isObject function
    
    Change-Id: Ie566946cdd12359000db6fbb30d9dec49f8c73c5
    Reviewed-on: https://gerrit.libreoffice.org/84729
    Tested-by: Jenkins
    Reviewed-by: Olivier Hallot <[email protected]>

diff --git a/source/text/sbasic/shared/03102800.xhp 
b/source/text/sbasic/shared/03102800.xhp
index bc884e18a..650992598 100644
--- a/source/text/sbasic/shared/03102800.xhp
+++ b/source/text/sbasic/shared/03102800.xhp
@@ -1,5 +1,4 @@
 <?xml version="1.0" encoding="UTF-8"?>
-
 <!--
  * This file is part of the LibreOffice project.
  *
@@ -17,7 +16,6 @@
  *   except in compliance with the License. You may obtain a copy of
  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
  -->
-
 <helpdocument version="1.0">
 <meta>
 <topic id="textsbasicshared03102800xml" indexer="include" status="PUBLISH">
@@ -33,18 +31,38 @@
 <bookmark xml-lang="en-US" branch="index" 
id="bm_id3149346"><bookmark_value>IsObject function</bookmark_value>
 </bookmark>
 <paragraph role="heading" id="hd_id3149346" xml-lang="en-US" level="1"><link 
href="text/sbasic/shared/03102800.xhp" name="IsObject Function">IsObject 
Function</link></paragraph>
-<paragraph role="paragraph" id="par_id3148538" xml-lang="en-US">Tests if a 
variable is an object, as opposed to primitive data types such as dates, 
numbers, texts. The function returns True if the variable is an object, 
otherwise it returns False.</paragraph>
+<paragraph role="paragraph" id="par_id3148538" xml-lang="en-US">Tests if a 
variable is an object, as opposed to primitive data types such as dates, 
numbers, texts. The function returns <literal>True</literal> if the variable is 
an object, otherwise it returns <literal>False</literal>.</paragraph>
 </section>
 <paragraph role="heading" id="hd_id3149234" xml-lang="en-US" 
level="2">Syntax:</paragraph>
 <bascode>
-<paragraph role="bascode" id="par_id3154285" xml-lang="en-US">IsObject 
(var)</paragraph>
+<paragraph role="bascode" id="par_id3154285" 
xml-lang="en-US">IsObject(var)</paragraph>
 </bascode>
 <paragraph role="heading" id="hd_id3148685" xml-lang="en-US" level="2">Return 
value:</paragraph>
 <paragraph role="paragraph" id="par_id3156024" 
xml-lang="en-US">Boolean</paragraph>
 <paragraph role="heading" id="hd_id3148947" xml-lang="en-US" 
level="2">Parameters:</paragraph>
 <paragraph role="paragraph" id="par_id3148552" xml-lang="en-US">
-<emph>var:</emph> Any variable that you want to test. If the var variable 
contains an extended type, object instance or OLE Object, the function returns 
True.</paragraph>
+<emph>var:</emph> Any variable that you want to test.</paragraph>
 <embed href="text/sbasic/shared/00000003.xhp#errorcode"/>
 <embed href="text/sbasic/shared/00000003.xhp#err5"/>
+<paragraph role="paragraph" id="par_id891575896963115">The following objects 
return <literal>True</literal>:</paragraph>
+  <list type="unordered">
+    <listitem><paragraph id="par_id471575892220352" 
role="listitem"><switchinline select="sys"><caseinline select="WIN">OLE objects 
or </caseinline></switchinline>UNO objects</paragraph></listitem>
+    <listitem><paragraph id="par_id451575892264518" role="listitem"><link 
href="text/sbasic/shared/classmodule.xhp" name="Class module">Class 
module</link> object instances</paragraph></listitem>
+    <listitem><paragraph id="par_id851575882379006" role="listitem"><link 
href="text/sbasic/shared/03090413.xhp" name="Extended types">Extended 
types</link> or <link href="text/sbasic/shared/enum.xhp" 
name="enumerations">enumerations</link></paragraph>  </listitem>
+    <listitem><paragraph id="par_id131575882378422" role="listitem">Routines 
or variables when defined as Object.</paragraph></listitem>
+    <listitem><paragraph id="par_id511575889156356" 
role="listitem">%PRODUCTNAME Basic modules</paragraph></listitem>
+  </list>
+  <warning id="par_id441575886284392">Data structures return 
<literal>True</literal> even when empty. Object defined variables return 
<literal>True</literal> even if uninitialized.</warning>
+  <section id="relatedtopics">
+   <paragraph role="paragraph" id="par_id191575887649871"><link 
href="text/sbasic/shared/enum.xhp" name="Enum statement">Enum 
statement</link></paragraph>
+   <embed href="text/sbasic/shared/classmodule.xhp#classmodulestatement"/>
+   <!-- Function statement-->
+   <!-- Object type-->
+   <!-- CreateObject-->
+   <!-- UNO objects-->
+   <!-- Property statement-->
+   <paragraph role="paragraph" id="par_id51575897210153"><link 
href="text/sbasic/shared/03090413.xhp" name="Type statement">Type 
statement</link></paragraph>
+   <paragraph role="paragraph" id="par_id811575887627196"><link 
href="text/sbasic/shared/01020100.xhp" name="Using variables">Using 
variables</link></paragraph>
+</section>
 </body>
 </helpdocument>
\ No newline at end of file
_______________________________________________
Libreoffice-commits mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to