Show AllShow All

About the programming environment

Microsoft Office InfoPath 2003 uses the Microsoft Script Editor (MSE) as its primary integrated development environment. Microsoft JScript and Microsoft VBScript are the programming languages that are used in MSE to create custom business logic for a form.

Note  If you have Microsoft Visual Studio .NET 2003, you can use the Microsoft Office InfoPath 2003 Toolkit for Visual Studio .NET to create InfoPath projects using managed code. For more information on using Visual Studio .NET to create InfoPath projects, see the documentation installed with the InfoPath 2003 Toolkit for Visual Studio .NET. For information on how to download the InfoPath 2003 Toolkit for Visual Studio .NET, see the InfoPath Developer Page on Office Developer Center.

MSE can be opened when working with a form in design mode by pointing to Script on the Tools menu and clicking Microsoft Script Editor, or by pressing ALT+SHIFT+F11. When you open MSE from InfoPath, the MSE code editor appears and the form's default scripting file (with either a .js or .vbs extension, depending on the scripting language set for the form) opens in the code editing window.

Working with MSE in an InfoPath form involves several tasks, including setting the default scripting language, creating an event handler, and debugging scripting code.

ShowSetting the default scripting language

ShowCreating an event handler

ShowDebugging scripting code

Note  For more information about using MSE, click Microsoft Script Editor Help on the Help menu when working in MSE.

©2003-2004 Microsoft Corporation. All rights reserved. Permission to copy, display and distribute this document is available at: http://msdn.microsoft.com/library/en-us/odcXMLRef/html/odcXMLRefLegalNotice.asp