Set Object Value 追蹤


Hi there


Does any one know how to set object value by VBScript?


Seems "Format.Object("name").Value" is readonly property.

2 意見

Shotaro Ito
評論操作 永久連結

You need to name data source used in the object, to be able to modify object value.


When you have "Bar Code 1" object, open the object and select the data source. at data sources, you can name data source (ex. "BC1").

From VB script, you can modify this from other data source's VB Script like


Format.NamedSubStrings("BC1").Value = "301"
Legacy Poster
評論操作 永久連結



I am trying to use global variables in vbScript as counters.


I am not sure if this is the right approach, but I am experimenting with this in a multi-line script:


'Automatically called whenever the value of the Sub String is needed.
'Set the Value property to set the value of this sub string.

'Assign global variable (?)
Format.NamedSubStrings("BC1").Value = "12345"

'show on label
Value = Format.NamedSubStrings("BC1").Value


But then I get an error that says:
<Line5: :The named sub string BC1 is not found in the named sub string list>


Question: How do I use global variables in Bartender vbScript??

Maybe I need to temp files?


Thank you!