WordBASIC was a subset of
Microsoft
Microsoft Corporation is an American multinational corporation, multinational technology company, technology corporation producing Software, computer software, consumer electronics, personal computers, and related services headquartered at th ...
QuickBASIC customized for word-processing in
Microsoft Word
Microsoft Word is a word processing software developed by Microsoft. It was first released on October 25, 1983, under the name ''Multi-Tool Word'' for Xenix systems. Subsequent versions were later written for several other platforms includi ...
. It was replaced by
Visual Basic for Applications (VBA) when
Word 97 was released. Contrarily to VBA, WordBasic was not
object-oriented
Object-oriented programming (OOP) is a programming paradigm based on the concept of " objects", which can contain data and code. The data is in the form of fields (often known as attributes or ''properties''), and the code is in the form of ...
but consisted of a flat list of approximately 900 commands.
Example code
The following code snippets show the difference between WordBasic and VBA with a "Hello, World!" example:
Converting WordBasic Macros to Visual Basic
07/11/2006, Microsoft Doc
Archived
/ref>
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
{{Authority control
BASIC programming language family
Microsoft Office
Programming languages created in 1989
Macro programming languages