Hi,
Check out this link,
http://www.infopathdev.com/blogs/greg/archive/2004/07/12/Populate-a-Drop_2D00_Do
wn-List-Box-via-Code.aspx
I hope this will help for you.

Signature
k.Ramana Reddy
http://www.autonomysystems.com
> I am using InfoPath 2003 and trying to bind a dropdown list to the
> views in the document. I can iterate over the views and get their
> names, etc. but I cannot figure out how to add items to the dropdown
> list. Is there a way to programmatically add items to a dropdown list
> or better yet a way to bind the list to the views collection?