I want to store a list of integers that are entered in a number of text boxes and comboboxes as a string in an array. Ech time someone clicks the 'Purchase' button these integers (representing the code, quantity etc. of an item bought) will be listed as a string and held in an array. The textboxes etc. will then be cleared for the next set of data.

At the top of the code window I've declared:
Dim ValArray() as integer

In the click event of the purchase button The code relating to the string and array is as follows so far:

Dim Values As String
Dim i As Integer

Values = txtRef.Text +CombType.text 'this continues to include all text boxes etc.

ReDim ValArray(Values - 1)
For i = 0 To UBound(ValArray)
ValArray(i) = Values
Next

That's as far as I've got. I think I've gone wrong with the last statement, can anyone point out the obvious to me?