Forum Discussion
ucuber
6 years agoOccasional Contributor
This is funny ... I'm thinking about things and do not have a clue and in the moment I've asked the community I have a possible solution in mind :-)
I want to show what I think is a possible (but somewhat ugly) solution to the described problem:
The local or project variable that holds the csv row is of type DB Table. If I hand over this one I can extract the values into a dictionary and everything is fine.
test(scenario, device, db_table):
values = dict()
for i in range(0, db_table.ColumnCount):
name = db_table.ColumnName[i]
values[name] = db_table.Value[name]
...
Feel free to comment/modify
Regards
Ulrich
Related Content
- 6 years ago
Recent Discussions
- 5 hours ago
- 6 hours ago