WordBASIC
DeveloperMicrosoft
First appeared1989; 37 years ago (1989)
OSMicrosoft Windows, Mac OS X
LicenseCommercial proprietary software
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

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
  1. ^ Halvorson, Michael; Kinata, Chris (1997). Microsoft Word 97 Visual Basic Step by Step. Redmond, WA: Microsoft Press. ISBN 1-57231-388-9.
  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

📚 Artikel Terkait di Wikipedia

Visual Basic for Applications

earlier application-specific macro programming languages such as Word's WordBASIC. It can be used to control many aspects of the host application, including

Microsoft Word

advanced macros and even embedded programs. The language was originally WordBasic, but changed to Visual Basic for Applications as of Word 97. This extensive

Visual Basic (classic)

suite. To ease migration of Office macros and scripts, features from WordBasic, Excel Basic and Access Basic were incorporated into the language. Incompatibilities

List of Microsoft software

Visual Studio Tools for Office VSTS Profiler Windows API Windows SDK WordBASIC Xbox Development Kit 3D Builder 3D Scan (requires a Kinect for Xbox One

BASIC

implementations. The pre-Office 97 macro language for Microsoft Word is known as WordBASIC. Excel 4 and 5 use Visual Basic itself as a macro language. Chipmunk Basic

History of Microsoft Word

with Word 3.0 macros. The macro language differed from the WinWord 1.0 WordBasic macro language. Word 5.5 for DOS, released in 1990, significantly changed

Generational list of programming languages

Small Basic B4X Basic for Qt OpenOffice Basic HBasic Gambas WinWrap Basic WordBasic QB64 PureBasic REALbasic (Xojo) TI-BASIC True BASIC Turbo Basic PowerBASIC

Scripting language

serve as glue languages. These include Visual Basic for Applications, WordBasic, LotusScript, CorelScript, Hummingbird Basic, QuickScript, Rexx, SaxBasic