|
WordBASIC was a subset of Microsoft QuickBASIC customized for word-processing. It was replaced by Visual Basic for Applications (VBA) when Word 97 was released. Contrarily to VBA, WordBasic was not object-oriented but consisted of a flat list of approximately 900 commands.〔https://msdn.microsoft.com/en-us/library/office/aa211963%28v=office.11%29.aspx〕 ==Example code== The following code snippets show the difference between WordBasic and VBA with a "Hello world!" example:〔https://msdn.microsoft.com/en-us/library/office/aa211926%28v=office.11%29.aspx〕 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 抄文引用元・出典: フリー百科事典『 ウィキペディア(Wikipedia)』 ■ウィキペディアで「WordBASIC」の詳細全文を読む スポンサード リンク
|