IBM Lotus Symphony
|
Oppretter forekomster av en Uno-tjeneste med ProcessServiceManager.
oService = CreateUnoService( Uno-tjenestenavn )
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