<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Global of struct type behave as local variables"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=88442#c5">Comment # 5</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Global of struct type behave as local variables"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=88442">bug 88442</a>
              from <span class="vcard"><a class="email" href="mailto:jbt@gmx.us" title="John <jbt@gmx.us>"> <span class="fn">John</span></a>
</span></b>
        <pre>It's worth noting that this is an issue with the "as new" construct. Changing
the example macro to use:

Global aDate        as Object

and in doSet

Set aDate = new "com.sun.star.util.Date"

before setting the values and for safety, 

        if not isNULL(aDate) THEN

in doShow


...

And now aDate can hold its value. There's something about the "as new"
construct that causes it to get re-initialized to a new object when run the
next time.I'm not certain, but I believe this to be incorrect behavior.</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>