Assigning Data To Shared Data Sources 追蹤

0
Avatar
Legacy Poster

I put this in another forum, but this looks like a better place for it.

 

 

I have a rather complicated VB script that queries several databases to determine text to be applied to a label. It all works well until it get to the assignment of values to the Shared Data Sources. I get the error message "Unable to write read-only property."

 

The code is within a Function I created on the "BarTender Document Options. . ." page.

 

The statement that have issues are as follows:

 

Format.NamedSubStrings("SHText-block").Value = SHText

Format.NamedSubStrings("GHS1").Value = tmp1

Format.NamedSubStrings("GHS2").Value = tmp2

Format.NamedSubStrings("GHS3").Value = tmp3

Format.NamedSubStrings("GHS4").Value = tmp4

Format.NamedSubStrings("GHS5").Value = tmp5

 

 

Any ideas?

 

2 意見

0
Avatar
Michael Toupin (mtoupin
評論操作 永久連結

What process are you executing the script on?

0
Avatar
Legacy Poster
評論操作 永久連結

It is in OnNewRecord.

登入寫評論。