home *** CD-ROM | disk | FTP | other *** search
/ Chip 2003 December / Chip_2003-12_cd2.bin / oo / download / f_0019 / sbasic.jar / text / sbasic / common / 03104600.xml < prev    next >
Extensible Markup Language  |  2003-01-16  |  2KB  |  32 lines

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <html><head><title>Funkce EqualUnoObjects [Runtime]</title><meta name="filename" content="text/sbasic/common/03104600"/><meta name="language" content="en-US"/><help:css-file-link xmlns:help="http://openoffice.org/2000/help"/><!--The CSS style header method for setting styles--><style type="text/css">
  3.  
  4.         p.P1{
  5.                 }
  6.         p.P2{
  7.                 }
  8.         span.T1{
  9.                 font-weight:bold;}
  10.         </style></head><body>
  11.    
  12.    
  13.    <help:to-be-embedded Eid="equalunoobjects" xmlns:help="http://openoffice.org/2000/help">
  14.    <p class="Head1"><help:link Id="68588">Funkce EqualUnoObjects [Runtime]</help:link></p>
  15.    <p class="Paragraph">Vr├ít├¡ hodnotu True (PRAVDA), pokud dva zadan├⌐ objekty Basic Uno p┼Öedstavuj├¡ stejnou instanci objektu Uno.</p>
  16.    </help:to-be-embedded>
  17.    <p class="Paragraph"><span class="T1">Syntaxe</span>:</p>
  18.    <p class="Paragraph">EqualUnoObjects( oObj1, oObj2 )<help:key-word value="EqualUnoObjects" tag="kw68588_1" xmlns:help="http://openoffice.org/2000/help"/></p>
  19.    <p class="Paragraph"><span class="T1">Vr├ícen├í hodnota</span>:</p>
  20.    <p class="Paragraph">Logick├í</p>
  21.    <p class="P2">P┼Ö├¡klad:</p>
  22.    <p class="PropText">// Copy of objects -> same instance</p>
  23.    <p class="PropText">oIntrospection = CreateUnoService( "com.sun.star.beans.Introspection" )</p>
  24.    <p class="PropText">oIntro2 = oIntrospection</p>
  25.    <p class="PropText">print EqualUnoObjects( oIntrospection, oIntro2 )</p>
  26.    <p class="PropText"/>
  27.    <p class="PropText">// Copy of structs as value -> new instance</p>
  28.    <p class="PropText">Dim Struct1 as new com.sun.star.beans.Property</p>
  29.    <p class="PropText">Struct2 = Struct1</p>
  30.    <p class="PropText">print EqualUnoObjects( Struct1, Struct2 )</p>
  31.   </body></html>
  32.