WordBASIC
WordBASICは、ワープロ用にカスタマイズされたMicrosoft QuickBASICのサブセットである。Windows 版 Word 6.0 または Word 95 で利用�…
| 登場時期 | 1989 |
|---|---|
| 開発者 | マイクロソフト |
| 影響を受けた言語 | QuickBASIC |
| プラットフォーム | Microsoft Windows, Mac OS X |
| ライセンス | 商用 プロプライエタリソフトウェア |
WordBASICは、ワープロ用にカスタマイズされたMicrosoft QuickBASICのサブセットである。Windows 版 Word 6.0 または Word 95 で利用できたが、Word 97のリリース時に、Visual Basic for Applications(VBA)に置き換えられた。VBAとは対照的に、WordBasicはオブジェクト指向ではなく、約900のコマンドのフラットリストで構成されていた[1]。
Word 2000 では、WordBasic のマクロを含む Windows 版 Word 6.0 または Word 95 のテンプレートを開くと、マクロは Visual Basic のモジュールに自動的に変換される[2]。マクロ内の各 WordBasic ステートメントおよび関数は、対応する WordBasic メソッドに変換される。
サンプルコード
次のコードスニペットは、「Hello、World!」の例でWordBasicとVBAの違いを示している。
例: [3]
WordBasic:
Sub MAIN
FormatFont .Name = "Arial", .Points = 10
Insert "Hello, World!"
End Sub
VBA:
Public Sub Main()
With Selection.Font
.Name = "Arial"
.Size = 10
End With
Selection.TypeText Text:="Hello, World!"
End Sub
脚注
- ^ WordBasic と Visual Basic の概念上の違い, 07/11/2006, Microsoft Docs Archived
- ^ WordBasic プロパティ (Word)
- ^ Converting WordBasic Macros to Visual Basic, 07/11/2006, Microsoft Docs Archived
Content Disclaimer
Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.
- The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
- There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
- It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
- Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
- Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.