WordBASIC
   HOME

TheInfoList



OR:

WordBASIC was a subset of
Microsoft Microsoft Corporation is an American multinational technology corporation producing computer software, consumer electronics, personal computers, and related services headquartered at the Microsoft Redmond campus located in Redmond, Washing ...
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 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 includin ...
. 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 pro ...
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