In LotusScript how do I list all the fields and their values in a document?

Hello,How in LotusScript do I go through all the fields in a document and print all the form field names with their values.

I seem to remeber there was an example in the help which did this with a loop but I can’t find it anywhere.

Many thanks in advance.

Subject: In LotusScript how do I list all the fields and their values in a document?

Bob,

Is this the example you are looking for?

This example prints the name of every item in a document. For example, if the document contains five items, the script might print “From,” “SendTo,” “Subject,” “Body,” and “DeliveredDate.”

Dim doc As NotesDocument

'…set value of doc…

Forall i In doc.Items

Messagebox( i.Name )

End Forall

look under the Items property of the NotesDocument class.

brandt

Subject: Thats what I wanted.

Thats what I wanted!Many thanks Brandt.