Variables, Dictionary or Struct

When capturing the record for an order, there’re about 30 items need to be saved:
Name, Serial number, Model, Price, etc.

What’s the best practice for you to save these items? (captured by Get Text Activity or similar)
Will you use variables, dictionary, struct or anything else and why?

AFAIK dictionary and struct are the same thing. Maybe there are some differences I don’t know about, but they’re still name/value pairs.

For your case, I would definitely use a dictionary because name/value pairs is exactly what you have. A name of “Name” with a value, a name of “Serial number” with a value, etc.

And you can actually reference the dictionary directly in the Get Text. You don’t need separate variables then assigns. Just directly put the value into the dictionary with Get Text:


This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.