[Libreoffice-bugs] [Bug 88442] Global of struct type behave as local variables

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Wed Mar 3 16:05:59 UTC 2021


https://bugs.documentfoundation.org/show_bug.cgi?id=88442

--- Comment #5 from John <jbt at gmx.us> ---
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.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20210303/fd35a370/attachment.htm>


More information about the Libreoffice-bugs mailing list