IBM Lotus Symphony


CreateUnoService 関数 [実行時]

ProcessServiceManager で Uno サービスのインスタンスを作成します。

構文:

oService = CreateUnoService( Uno service name )

例:

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

以下のコードでは、ファイルオープンダイアログを開くためのサービスを使用しています。

Sub Main

fName = FileOpenDialog ("Please select a file")

print "file chosen: "+fName

End Sub

function FileOpenDialog(title as String) as String

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

filepicker.Title = title

filepicker.execute()

files = filepicker.getFiles()

FileOpenDialog=files(0)

End function


製品フィードバック | その他の資料 | 商標