Illegal use of PROPERTY

Hi

I have some fields in my doc, let’s say fields A1, A2 … A70. In my script, I have an array A(70). Now, I’d like to save the array to the doc (element A(1) to the A1 field, element A(2) to the A2 field and so on), so the script would be:

For i = 1 to 70

tempString = “A” + Ltrim(Str(i))

doc.%tempString = A(i)

Next

Of course, this is not possible. My question is, how to use an numeric variable in an field’s name?

Simply, for example, “doc.%tempString” should be translated as “doc.A1”, because %tempString = “A1”

Thanks a lot for your help

Have a nice time

Jindra

Subject: Illegal use of PROPERTY

Yep!

Thanks a lot!

Jindra

Subject: Illegal use of PROPERTY

try this

Set itm = doc.GetFirstItem(tempString)

itm.values = A(i)

cheers!!

Subject: Illegal use of PROPERTY

doc.replaceitemvalue(tempString,a(i))