WordBASIC

From Wikipedia, the free encyclopedia

This is the current revision of this page, as edited by Northern Moonlight (talk | contribs) at 18:54, 11 September 2023 (rm unexplained highlight). The present address (URL) is a permanent link to this version.

(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)
WordBASIC
DeveloperMicrosoft
First appeared1989; 35 years ago (1989)
OSMicrosoft Windows, Mac OS X
LicenseCommercial proprietary software
Influenced by
QuickBASIC

WordBASIC was a subset of Microsoft QuickBASIC customized for word-processing in Microsoft Word. 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.[1]

Example code[edit]

The following code snippets show the difference between WordBasic and VBA with a "Hello, World!" example:[2]

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

References[edit]