Date: prev next · Thread: first prev next last
2018 Archives by date, by thread · List index

[original problem]

klaten wrote
I am trying to find a way in LibreOffice Basic to determine whether two
object variables are referencing the same instance of a user-defined type.
The "EqualUnoObjects" function seemed plausible but . . . does
not work as expected:I expected a response of "var1.field1 = var2"
by "Done," but I only got "Done." 

[makeshift solution]

OK, so apparently there is no such function in the runtime of LibreOffice
Basic. To complete my macro, I chose the following workaround: assign a
unique object ID to each user-defined type object, and to check their
equivalence, check the equivalence of the object IDs. Here is what my test
code looked like with this solution applied.

Sent from:

To unsubscribe e-mail to:
Posting guidelines + more:
List archive:
All messages sent to this list will be publicly archived and cannot be deleted


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.