Assigning Data To Shared Data Sources
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?
-
What process are you executing the script on?
0 -
It is in OnNewRecord.
0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
2 Kommentare