Alright, well I have a MSFlexGrid on the form, and I have a function set up that saves everything in the FlexGrid to a file in a certain format. How would I be able to load the saved file back into the FlexGrid? This is this format it saves in:
Here is the code used to save:Code:First Section's Data, Second Section's Data ,
Thanks in advaned!Code:Public Function SaveFlex(FileName As String) 'First, open the file Open FileName For Output As #1 iRows = MSFlexGrid1.Rows iCols = MSFlexGrid1.Cols For i = 0 To iRows - 1 For j = 0 To iCols - 1 If IsNumeric(MSFlexGrid1.TextMatrix(i, j)) Then Print #1, CCur(MSFlexGrid1.TextMatrix(i, j)); ","; Else Print #1, MSFlexGrid1.TextMatrix(i, j); ","; End If Next j Print #1, 'Finish the current row. Next i Close #1 'Close the file End Function
JLTL




Reply With Quote