Ask a Question

Getting a comma separated list from a table variable


Getting a comma separated list from a table variable

So I'm trying to set up a modal user form to select a wait time in a script. This selection will be used to set the value of a project suite global variable ProjectSuite.Variables.longWait.


I set the combo box values up in a Table variable. The table variable isn't processed as a comma separated list, which is what I should have expected, but I wanted to try it.

def LengthToWait_OnShow(Sender):
  UserForms.LengthToWait.waitTimesComboBox.Properties.Items.CommaText = ProjectSuite.Variables.waitTimes

This code, of course, returns an error.

Is there a way to transform a Table variable into a comma separated list? The variable itself is a 1 col x 3 row right now. I don't forsee needing to add any more columns.

You might not like AI, but it doesn't care about you.
Champion Level 3

Why does it need to be a comma separated list?

Champion Level 3



Iterate through the table and join cell values using comma as separator.


  /Alex [Community Champion]
[Community Champions] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Champions]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Champion] signature is assigned on quarterly basis and is used with permission by SmartBear Software.
SmartBear Alumni (Retired)

Thanks for the suggestions, AlexKaras, Marsha_R!


@DSmachineWorld, do they help you resolve the issue?



Tanya Yatskovskaya
SmartBear Community and Education Manager

Thanks everyone! Much appreciated!

You might not like AI, but it doesn't care about you.
Showing results for 
Search instead for 
Did you mean: