Skip to main content

Search

Search

Set Object Value

Comments

2 comments

  • Avatar
    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"
    
    0
  • Avatar
    Legacy Poster

    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!

    0

Please sign in to leave a comment.