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

Hi. I need to create several alarm servers in an application, but first I need to know if there is any impact on communication, or if more...
Replies
0
Views
46
Hello all, I'm having trouble opening an application. After clicking open I'm prompted to login and after putting in username & password it...
Replies
0
Views
82
Has anyone found information on using the variable message file? I keep looking for documentation on how to implement the message file name as a...
Replies
0
Views
69
I have two identical machines running similar HMI projects, the only difference is one is done in FactoryTalk View Version 10 and the other is...
Replies
5
Views
241
how to communicate FactoryTalk Optix and Mitsubishi Q Series. I want to know the details of that
Replies
0
Views
70
Back
Top Bottom