I have a usercontrol with 50 equal orderlines and I wish to save the information from these to a file.
I have shown some validation code for the array for orderline 7, how can I write a code for all the lines from 1 to 50 using a for-next? I have defined all the arrays Tal1(), Tal2()...Tal50().
Other wise I have to write the code below for all of the 50 order lines, not smart :-(

Code:
If Tal7(2) <> 40 Then
                    swFileText.Write(Tal7(0) & ";")
                    swFileText.Write(Tal7(1) & ";")
                    swFileText.Write(Tal7(2) & ";")
                    swFileText.Write(Tal7(3) & ";")
                    swFileText.Write(Tal7(4) & ";")
                    swFileText.Write(Tal7(5) & ";")
                    swFileText.Write(Tal7(6) & ";")
                    swFileText.Write(Tal7(7) & ";")
                    swFileText.Write(Tal7(8) & ";")
                    swFileText.Write(Tal7(9) & ";")
                    swFileText.Write(Tal7(10) & ";")
                    swFileText.Write(Tal7(11) & ";")
                    swFileText.Write(Tal7(12) & ";")
                    swFileText.Write(Tal7(13) & ";")
                End If