Set Object Value Follow

0
Avatar
Legacy Poster

Hi there

 

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

 

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

2 comments

0
Avatar
Shotaro Ito
Comment actions Permalink

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"
0
Avatar
Legacy Poster
Comment actions Permalink

Hi!

 

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!

Please sign in to leave a comment.