FactoryTalk SE - VisualBasics ComboBox

saeqsae

Member
Join Date
Jul 2019
Location
Concepcion
Posts
45
Hi all, i need some help with Visual Basics.

I never work with VBA before and i need to add a combobox into my application. Some guys told me to use ActiveX Control with VBA but actually i don't know how to write the code. If any have some literature to learn or an example to write the VBA for the combo box is welcomed.

Thanks in advanced.
 
Once you have added a combo box just iterate through the variables for example

for x = 0 to Len(data)
ComboBox1.Additem = Data(x)
next

ComboBox1 is the combo box you added to the screen (what ever you call it)
Data is an array of the data to add, You can add the data one by one if you know how long the list is or use a for next loop but remember to check it's length

One by one
ComboBox1.AddItem = Data(0)
Combobox1.AddItem = Data(1)
and so on
 
Thanks both, i can create succesfully the combobox. There is any chance to put on in parameters from FTV? I mean, to utilize the #1, #2, #3 for different options?
 

Similar Topics

how to communicate FactoryTalk Optix and Mitsubishi Q Series. I want to know the details of that
Replies
0
Views
36
Hoping someone can give me some guidance or confirmation of what I need to do. We have a FactoryTalk SE program that I need to change the IP...
Replies
2
Views
82
We are a water/wastewater plant, collecting realtime and manually entered data. We have been using FactoryTalk Historian (OSI PI) for real time...
Replies
3
Views
130
Good morning! Let me start by saying, I am still learning about this type of HMI programming. I recently watched a video about recipes and how it...
Replies
0
Views
68
Hello, I'm using FactoryTalk View ME V10. I created a valve as a global object with multiple parameters and when the object is being used at the...
Replies
2
Views
129
Back
Top Bottom