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


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

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

    Dim oTest As Object

    oTest = FactoryTest()
    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 ...


Thank you for your help.

To unsubscribe e-mail to:
Posting guidelines + more:
List archive:
Privacy Policy:


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.