The following code snippets show the difference between WordBasic and VBA with a "Hello, World!" example:[2]
Sub MAIN
FormatFont .Name = "Arial", .Points = 10
Insert "Hello, World!"
End Sub
Public Sub Main()
With Selection.Font
.Name = "Arial"
.Size = 10
End With
Selection.TypeText Text:="Hello, World!"
End Sub