WordBASIC

From Wikipedia, the free encyclopedia
(Redirected from WordBasic)
Jump to navigation Jump to search
WordBASIC
DeveloperMicrosoft
First appeared1989; 37 years ago (1989)
OSMicrosoft Windows, Mac OS X
LicenseCommercial proprietary software
Website{{#property:P856}}
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.[1] Contrarily to VBA, WordBasic was not object-oriented but consisted of a flat list of approximately 900 commands.[2]

Example code

[edit | edit source]

The following code snippets show the difference between WordBasic and VBA with a "Hello, World!" example:[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

References

[edit | edit source]
  1. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
  2. ^ Conceptual Differences Between WordBasic and Visual Basic, 07/11/2006, Microsoft Docs Archived
  3. ^ Converting WordBasic Macros to Visual Basic, 07/11/2006, Microsoft Docs Archived

Lua error in Module:Authority_control at line 153: attempt to index field 'wikibase' (a nil value).