I have some code where I have a "map" stored in a string and then I put this into an array. This array has seperated the string into characters for each index position. I now want to put these characters into a two dimensional array as shown below is my attempt:
Sub DisplayMap()
Dim MapTog As String
MapTog = ("--------------------------------------------------------------------------------") _
& ("- -") _
& ("- -") _
& ("- -") _
& ("- -") _
& ("- -") _
& ("- -") _
& ("- --------------------- -") _
& ("- -") _
& ("- -") _
& ("- -") _
& ("- -") _
& ("- -") _
& ("------------------- ---------------------") _
& ("- -") _
& ("- -") _
& ("- -") _
& ("- -") _
& ("- -") _
& ("- --------------------- -") _
& ("- -") _
& ("- -") _
& ("- -") _
& ("- -") _
& ("--------------------------------------------------------------------------------")
Dim MapSep() As Char = MapTog.ToCharArray
For Count = 0 To 24
For Count2 = 0 To 79
Map(Count)(Count2) = MapSep(Count2)
Console.Write(MapSep(Count2))
Next Count2
Next Count
Console.SetCursorPosition(0, 0)
End Sub
I think I have a problem to do with my For loops, but I cannot figure it out. Any help is much appreciated, thanks! :)