Jump to content
Wikipedia The Free Encyclopedia

WordBASIC

From Wikipedia, the free encyclopedia
(Redirected from WordBasic)
WordBASIC
Developer Microsoft
First appeared1989; 36 years ago (1989)
OS Microsoft Windows, Mac OS X
License Commercial 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:

SubMAIN
FormatFont.Name="Arial",.Points=10
Insert"Hello, World!"
EndSub

VBA:

PublicSubMain()
WithSelection.Font
.Name="Arial"
.Size=10
EndWith
Selection.TypeTextText:="Hello, World!"
EndSub

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
Dialects of the BASIC programming language (list)
Classic
Microsoft
Texas Instruments
Hewlett-Packard
Locomotive Software
Microcomputers
Minicomputers
Time-sharing computers
Other
Extenders
Procedure-
oriented
Proprietary
Free and
open source
With object
extensions
Proprietary
Free and
open source
RAD
designers
Proprietary
Free and
open source
Defunct

AltStyle によって変換されたページ (->オリジナル) /