Hi,
You can write code in infopath using visual studio and microsoft script editor.
If you have already installed visual studio, you have to install infopath tool kit to write code in infopath.
You can write code using C#.net and Vb.net in visual studio.
If you not have visual studio, you can write code in microsoft script editor using script languages like jscript and vb script.
To open script editor do the following steps.
1. Open the infopath.
2. in view menu, go to tools menu.
3. In tools menu , select programming and select option microsoft script editor.
I hope this will help for you,
Thanks.
K.Ramana Reddy / http://www.ggktech.comIndia.