Define Object Value With Vb If Elseif Statement フォローする
I am trying to define the value of an object on a label using Multiline VB Script. I am working with two text objects in my label design. The first object is named "MODEL NAME". This object is defined by a prompt control Dropdown List with set values. The second object is named "SKU". I would like to have the value for "SKU" to be assigned based on the selection made in the Dropdown List for the "MODEL NAME" object. This is what I have so far and it is not working. I am not a pro with VB so this may be a simple vb code error because I am not very familiar with writing in vb.
This is what I have in the Data Source for the "SKU" object. Source is set to Visual Basic Script. Type is set to Multi-Line Script. Using Bartender 9.4 SR3 Enterprise Automation Edition.
If Format.Objects("MODEL NAME").Value = "350" Then
Value = "1"
ElseIf Format.Objects("MODEL NAME").Value = "400" Then
Value = "2"
ElseIf Format.Objects("MODEL NAME").Value = "450" Then
Value = "3"
I assume I have to set a variable to use in the script after the "Then" and tie that variable to the "Value" that seems to be preset in the Bartender software as a variable for the output to the object data source.
Any help would be much appreciated.