>Hi Cetin,
>thank you for your post.
>
>I am using
>oMyWordObj.SetFormResult(la_bmrk(ln_loop),ALLTRIM(cpconvert(850,1252,lc_mrkVal)))
>and it is working fine for the bookmarks which names are same as fields in my table. My problem now is how to get the content of a bookmark where this is not the case. Example
>bookmark name = sum
>content is some expression like: var1 + var2 + var3
>where varn are fields from my table. How can I achieve that the sum of these fields will really show in my document?
>
>milos
Milos,
I don't have a chance to try this but it should be :
oMyWordObj.SetFormResult("sum",str(var1+var2+var3))
If var(s) are word var(s) then :
oMyWordObj.SetFormResult("sum") should update it.
Cetin