I named a field "Size". How do I call it in script?

Whoops. Now when I try to reference it in LotusScript, I of course get an error.doc.Size(0)

Without going back to the form, creating a hidden computed field and refeshing all 5000+ documents using this form, is there a simple way to access this field in script?

Subject: I named a field “Size”. How do I call it in script?

Try:

set tmpitem = doc.getfirstItem(“Size”)

Subject: RE: I named a field “Size”. How do I call it in script?

Hi,

Or Test

value = doc.GetItemValue(“Size”)(0)

Andreas

Subject: RE: I named a field “Size”. How do I call it in script?

or (if memory serves) as

doc.~Size(0)

You can use that to access the $xxx items as well

doc.~$UpdatedBy