WordBASIC
WordBASIC was a subset of Microsoft QuickBASIC customized for word-processing. 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]
Developer | Microsoft |
---|---|
First appeared | 1989 |
OS | Microsoft Windows, Mac OS X |
License | Commercial proprietary software |
Influenced by | |
QuickBASIC |
Example code
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
gollark: The CSS is obviously the kind I write (trivially), it inconsistently uses fairly advanced new JS like template strings and destructuring and Uint8Arrays, it uses overly general operations like zip and cartesian product and map and insertDiagonalFrom, it also uses the exotic labelling feature, I doubt many people here know about WebWorkers or the ridiculous hack I came up with a while ago to do them without an actual external file, it does IO in such an ugly accursed way, and the AI is insane.
gollark: But it would have been funny, at least.
gollark: I decided not to because I knew it was you anyway and giving other people more information would be bad.
gollark: Wow, I really should have actually run the bruteforce thing.
gollark: It was below 10KB.
References
- Conceptual Differences Between WordBasic and Visual Basic, 07/11/2006, Microsoft Docs Archived
- Converting WordBasic Macros to Visual Basic, 07/11/2006, Microsoft Docs Archived
This article is issued from Wikipedia. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.