「Libroffice BASIC」:修訂間差異
跳至導覽
跳至搜尋
新頁面: [https://wiki.openoffice.org/wiki/Documentation/BASIC_Guide OpenOffice.org BASIC Programming Guide] |
無編輯摘要 |
||
| 第1行: | 第1行: | ||
==程式碼== | |||
*取得現有資料庫名稱 | |||
Dim DatabaseContext As Object | |||
Dim Names | |||
Dim I As Integer | |||
DatabaseContext = createUnoService("com.sun.star.sdb.DatabaseContext") | |||
Names = DatabaseContext.getElementNames() | |||
For I = 0 To UBound(Names()) | |||
MsgBox Names(I) | |||
Next I | |||
==相關連結== | |||
[https://wiki.openoffice.org/wiki/Documentation/BASIC_Guide OpenOffice.org BASIC Programming Guide] | [https://wiki.openoffice.org/wiki/Documentation/BASIC_Guide OpenOffice.org BASIC Programming Guide] | ||
於 2015年2月2日 (一) 09:09 的修訂
程式碼
- 取得現有資料庫名稱
Dim DatabaseContext As Object
Dim Names
Dim I As Integer
DatabaseContext = createUnoService("com.sun.star.sdb.DatabaseContext")
Names = DatabaseContext.getElementNames()
For I = 0 To UBound(Names())
MsgBox Names(I)
Next I