cancel
Showing results for 
Search instead for 
Did you mean: 

How do I list contents of a table in a combobox within a Userform?

apease01
Occasional Contributor

How do I list contents of a table in a combobox within a Userform?

Hi,



I am new to TestComplete and have little knowledge of programing.



I have created a table and need to link this table to a combo box within a Userform.



Thanks in advance,

Andy
3 REPLIES 3
YMinaev
Staff

RE: How do I list contents of a table in a combobox within a Userform?

Hi,



What exact table do your mean and how should it be linked to a combo box? Can you describe your request in detail?
------
Yuri
TestComplete Customer Care Engineer

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
apease01
Occasional Contributor

RE: How do I list contents of a table in a combobox within a Userform?

Hi Jared,



What I am trying to do is search a folder for a file, open that file and search for a specific word. However the folder which I need to search depends on what application I am testing, all the rest of the test will be the same.



I have created a form with a Combobox in, and also created a table that pulls back all folders names within a specific location. What I need is the combobox to show all folders listed in table, when a folder is selected open that folder and run the search script.



Any help or suggestions you have would be greatly appreciated,



Regards,

Andy
YMinaev
Staff

RE: How do I list contents of a table in a combobox within a Userform?

Hi Andy,



You can iterate through records in your table and add them to a combo box one by one by using its Properties.Items.Add method. To fill the combo box, write code which will do this in the form's OnShow event handler (see the "UserForm.OnShow" help topic).
------
Yuri
TestComplete Customer Care Engineer

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
New Here?
Join us and watch the welcome video:
Announcements
Top Kudoed Authors