diff options
author | Rafael Lima <rafael.palma.lima@gmail.com> | 2021-11-24 16:53:07 +0200 |
---|---|---|
committer | Rafael Lima <rafael.palma.lima@gmail.com> | 2021-11-25 15:29:18 +0100 |
commit | 3ac2801c1df75bd6dc1699d1774c8ed53ca7df54 (patch) | |
tree | 59950daf1509732bb5ec71ab65ab5b6bcf43d158 | |
parent | c80b0e8b7341e9880080767dcaf4722de694b858 (diff) |
Fix example in EqualUnoObjects help page
Change-Id: Iefea00251c858eb6fe98fe2220b24b3e35907c92
Reviewed-on: https://gerrit.libreoffice.org/c/help/+/125721
Tested-by: Jenkins
Reviewed-by: Rafael Lima <rafael.palma.lima@gmail.com>
-rw-r--r-- | source/text/sbasic/shared/03104600.xhp | 14 | ||||
-rw-r--r-- | source/text/sbasic/shared/is_keyword.xhp | 2 |
2 files changed, 8 insertions, 8 deletions
diff --git a/source/text/sbasic/shared/03104600.xhp b/source/text/sbasic/shared/03104600.xhp index a3bd26262f..891421b506 100644 --- a/source/text/sbasic/shared/03104600.xhp +++ b/source/text/sbasic/shared/03104600.xhp @@ -54,15 +54,15 @@ <paragraph role="paragraph" id="par_id181633473874216">The example below returns <emph>False</emph> because the assignment creates a copy of the original object. Hence <literal>Struct1</literal> and <literal>Struct2</literal> refer to different object instances.</paragraph> <bascode> <paragraph role="bascode" localize="false" id="bas_id441633474052121">Dim Struct1 as new com.sun.star.beans.PropertyValue</paragraph> - <paragraph role="bascode" localize="false" id="bas_id191633474052633">Dim Struct1 Variant</paragraph> - <paragraph role="bascode" localize="false" id="bas_id201633474052866">a.Name = "John"</paragraph> - <paragraph role="bascode" localize="false" id="bas_id761633474053090">b = a</paragraph> + <paragraph role="bascode" localize="false" id="bas_id191633474052633">Dim Struct2 as Variant</paragraph> + <paragraph role="bascode" localize="false" id="bas_id201633474052866">Struct1.Name = "John"</paragraph> + <paragraph role="bascode" localize="false" id="bas_id761633474053090">Struct2 = Struct1</paragraph> <paragraph role="bascode" localize="false" id="bas_id251633474053313">MsgBox EqualUnoObjects(Struct1, Struct2) ' False</paragraph> - <paragraph role="bascode" localize="false" id="bas_id441633474053530">b.Name = "Judy"</paragraph> - <paragraph role="bascode" localize="false" id="bas_id611633474053754">MsgBox a.Name ' John</paragraph> - <paragraph role="bascode" localize="false" id="bas_id251633474053977">MsgBox b.Name ' Judy</paragraph> + <paragraph role="bascode" localize="false" id="bas_id441633474053530">Struct2.Name = "Judy"</paragraph> + <paragraph role="bascode" localize="false" id="bas_id611633474053754">MsgBox Struct1.Name ' John</paragraph> + <paragraph role="bascode" localize="false" id="bas_id251633474053977">MsgBox Struct2.Name ' Judy</paragraph> </bascode> - + <section id="relatedtopics"> <embed href="text/sbasic/shared/03102800.xhp#IsObject_h1"/> </section> diff --git a/source/text/sbasic/shared/is_keyword.xhp b/source/text/sbasic/shared/is_keyword.xhp index 6501e237c0..0724cfe669 100644 --- a/source/text/sbasic/shared/is_keyword.xhp +++ b/source/text/sbasic/shared/is_keyword.xhp @@ -61,7 +61,7 @@ <paragraph role="bascode" localize="false" id="bas_id821633533048265"> MsgBox oStudent1 Is oStudent2 ' False</paragraph> <paragraph role="bascode" localize="false" id="bas_id451633533048471">End Sub</paragraph> </bascode> - + <section id="relatedtopics"> <embed href="text/sbasic/shared/03104600.xhp#EqualUnoObjects_h1"/> <embed href="text/sbasic/shared/03102800.xhp#IsObject_h1"/> |