Is their a way (LS)

In a Lotuscript agent I seem to remember a way to get the value of a field on a doc using a variable holding the field name.

Example

TheField = “Subject1”

now using the variable TheField can I get the value of the field called Subject1 from the doc?

Subject: is their a way (LS)

doc.getItemValue(TheField) should do it

HTH

kiers

Subject: RE: is their a way (LS)

Thanks worked fine.