Microsoft Office 2000/Visual Basic Programmer's Guide |
This guide contains numerous code samples that you can use to experiment with the concepts covered. Unless otherwise noted, the code is compatible with VBA 6.0 as it is implemented in Microsoft Visual Basic 6.0, Microsoft Access 2000, Microsoft Excel 2000, Microsoft FrontPage 2000, Microsoft Outlook 2000, Microsoft PowerPoint 2000, Microsoft Word 2000, and other applications that host VBA 6.0. Additional code samples are written in VBScript, JScript, HTML, and DHTML.
This guide uses the following conventions in VBA sample code:
Dim objDatabase As Object
Const PROP_NOT_FOUND_ERROR = 3270
Set objDatabase = CurrentDb
'
) introduces a comment:' This is a comment.
Dim intNew As Integer ' This is also a comment.
Sub MyCode ()
Dim intX As Integer
Dim intP As Integer
Dim intQ As Integer
If intX > 0 Then
intP = intQ
End If
End Sub
This guide also uses the following conventions in HTML script samples:
Note JScript is the Microsoft implementation of the ECMA-262 language specification.