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


Hi,

Thanks-you Jean-Francois for your correction. But it's not enought, the problem is still here ... I finded why : The new operator failed to load pseudo object code into a library from a document's call. It's same problem for GlobalScope library (inter-contener call) or Document library (inner-contener call).

But I can replace it with a function factory stored into the library and called from my document ... :

----------------------------------
REM Factory Modul into LibApplication
Option Explicit

Function FactoryTest As Object
    FactoryTest = new Test
End Function

----------------------------------
REM Unitary test into my document
Sub Test2()
    If not GlobalScope.BasicLibraries.hasByName("LibApplication") Then
        MsgBox("Librairie LibApplication non installée !")
        Exit Sub
    End If

    GlobalScope.BasicLibraries.loadLibrary("LibApplication")
    if not GlobalScope.BasicLibraries.isLibraryLoaded("LibApplication") Then
        MsgBox("Librairie LibApplication non chargée !")
        Exit Sub
    EndIf

    Dim oTest As Object

    oTest = FactoryTest()
    oTest.execute()
    Erase oTest
End Sub

Note : The Erase function call look's to run perfectly ...

So I need to add a specific modul in pseudo object library with factories ...

Patrick

Thank you for your help.
Patrick


--
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/
Privacy Policy: https://www.documentfoundation.org/privacy

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.