issues
OOo Basic 関連の issue。 Basic IDE
OOo Basic
Collection
ヘルプには記載がないが、VBA にある Collection が利用できる。VBASupport などの指定は不要。 Sub Collection_1 'Dim a As New Collection a = CreateObject("Collection") a.Add("hoge", "0") ' 値、キーの順。キーは文字列型のみ v = a.Item("0") ' 値を参照 n = a.Count() ' 要素数取得 a.Remove("0") ' 削除 End Sub ' キーの有無の確認はエラーを利用 Sub KeyExists(c As Collection, key As String) As Boolean On Error GoTo KeyError c.Item(key) Exists = True Exit Sub KeyError: KeyExists = False End Sub Python の dict のようにリッチなメソッドがあるこのタイプのものと比較すると見劣りします。OOo 2.4 付近でも動作します。 Singleton
oTDM = GetDefaultContext.getValueByName( _ "/singletons/com.sun.star.reflection.theTypeDescriptionManager") 3.3 からは以下の形式も可能に。 oTDM = com.sun.star.reflection.theTypeDescriptionManager.get() コンストラクタ
3.2 から。コンストラクタを指定してサービスをインスタンス化。新しいタイプのサービスのみで利用可能。 oResource = com.sun.star.resource.StringResourceWithStorage.create(.... RTF
VBA
Type
Dialog
他
そのほか気になる issue など BeanShell
Base
|