Hello,

I can get the names of all databases in my OOo-Application by this code:

Sub datenquellenAnzeigen
oDatenbankKontext = createUnoService _
        ( "com.sun.star.sdb.DatabaseContext" )
aDatenquellenNamen = oDatenbankKontext.getElementNames()
For nCounter = LBound( aDatenquellenNamen ) _
                To UBound( aDatenquellenNamen )
                oDatenquelle = oDatenbankKontext.getByName _
                        ( aDatenquellenNamen(nCounter) )
                sAusgabe = sAusgabe & _
                        oDatenquelle.Name & chr(13)
Next nCounter
msgbox sAusgabe
End Sub

works correctly, but my question is:
How can i get the name of the specific database which is the current
database for literature (by StarBasic-code)?

What i mean is:
On my own system the name of the literature database is "Bibliography",
but on a unknown system the name of the literature database can be
user-defined.



greetings

J�rg



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to