IBM Lotus Symphony


CreateUnoService-funksjonen [kjøretid]

Oppretter forekomster av en Uno-tjeneste med ProcessServiceManager.

Syntaks:

oService = CreateUnoService( Uno-tjenestenavn )

Eksempler:

oIntrospection = CreateUnoService( "com.sun.star.beans.Introspection" )

Følgende kode bruker en tjeneste for å åpne en filåpningsdialogboks:

Sub Main

fName = FileOpenDialog ("Velg en fil")

print "file chosen: "+fName

End Sub

function FileOpenDialog(title as String) as String

filepicker = createUnoService("com.sun.star.ui.dialogs.FilePicker")

filepicker.Title = tittel

filepicker.execute()

files = filepicker.getFiles()

FileOpenDialog=files(0)

End function


Tilbakemelding om produktet | Annen dokumentasjon | Varemerker