How take values from all text boxes?

I need to take values from those 4 columns (i.e horse number, bet type, amount). I don’t know take those 3 values. Can you help me out in this?

How are these text objects laid out in your hierarchy? If they are all children of the same parent (not some being children and some grandchildren) and they are the only children you could do a foreach loop.