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"
followed
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: http://nabble.documentfoundation.org/Users-f1639498.html

-- 
To unsubscribe e-mail to: users+unsubscribe@global.libreoffice.org
Problems? https://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette
List archive: https://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be deleted

Context


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.