Hi guys,
I'm trying to display in a list box a two dimensional array using format string.
The information for my array I'm getting from an external file.
this is what I have, and I don't know how to fix this.
I want to make it look like thisCode:Sub DisplaySeatChart() Dim fmtstr As String = "{0, -15}{1,-15}{2,20}{3,-15}{4,-15}" For i = 0 To 9 For j = 0 To 3 lstSeatChart.Items.Add(String.Format(fmtstr, SeatChart(i, 0), SeatChart(i, 1), "|", SeatChart(i, 2), SeatChart(i, 3))) Next Next end Sub
00 01 | 02 03
10 11 | 12 13
20 21 | 22 23
etc..
Tks




Reply With Quote