3D Array Help....
Could anyone please help me to learn how to save a 3d array in VB.net...... I'm sorta stuck.... even just a save to specific line streamwrite type thing would be great
first dimension <delimiter> second dimension <delimiter> third dimesion
Public Function Arrayvaluesave()
Dim arraysave(2234) As String
Dim arraysavecheck As Boolean = True
Dim arraycheck As Boolean = True
Dim arraysavebol As Boolean = False
Dim arrsavenumber As Integer = 0
Dim arrsavemodify As Integer = 0
Dim write As New StreamWriter("Months.txt")
Form2.Intyear = 0
Form2.IntMonth = 0
Form2.Intday = 0
Do While arraycheck = True
If arrsavenumber < 2231 Then
If Form2.Intday <= 29 Then
arraysave(arrsavenumber) = Form2.Arrtext(Form2.Intyear, Form2.IntMonth, Form2.Intday)
Form2.Intday += 1
arrsavenumber += 1
Else
If Form2.IntMonth <= 10 Then
arraysave(arrsavenumber) = Form2.Arrtext(Form2.Intyear, Form2.IntMonth, Form2.Intday)
arrsavenumber += 1
Form2.IntMonth += 1
Form2.Intday = 0
Else
If Form2.Intyear <= 5 Then
arraysave(arrsavenumber) = Form2.Arrtext(Form2.Intyear, Form2.IntMonth, Form2.Intday)
arrsavenumber += 1
Form2.Intyear += 1
Form2.IntMonth = 0
Form2.Intday = 0
End If
End If
End If
Else
arraysavecheck = False
arraysavebol = True
arrsavenumber = 1
End If
Do While arraysavebol = True
If arrsavenumber <= 2233 Then
write.WriteLine(arraysave(arrsavenumber), arrsavenumber)
arrsavenumber += 1
Else
arraysavebol = False
arraycheck = False
End If
Loop
Loop
write.Close()
MessageBox.Show(arraysave(0))
End Function