WordBASIC was a subset of
Microsoft
Microsoft Corporation is an American multinational corporation and technology company, technology conglomerate headquartered in Redmond, Washington. Founded in 1975, the company became influential in the History of personal computers#The ear ...
QuickBASIC
Microsoft QuickBASIC (also QB) is an Integrated Development Environment (or IDE) and compiler for the BASIC programming language that was developed by Microsoft. QuickBASIC runs mainly on DOS, though there was also a short-lived version for the c ...
customized for word-processing in
Microsoft Word
Microsoft Word is a word processor program, word processing program 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 platf ...
. 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''. Objects can contain data (called fields, attributes or properties) and have actions they can perform (called procedures or methods and impleme ...
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