Else Data =Right(Data, Len(Data) -7) For i =1ToLen(Data) oneChar =Mid(Data, i, 1) If oneChar <>""Then If oneChar ="."Then flagEnd =1 Else If temp <>Chr(13) Then temp = temp & oneChar flag =0 EndIf EndIf Else If flag =0And temp <>""Then temp = temp &"" flag =1 EndIf EndIf Next i EndIf If temp <>""And flagEnd =1Then tmpArr =Split(temp, "") varData.Add tmpArr temp ="" flagEnd =0 flag =0 EndIf EndIf Loop Close #1 Explanation End Sub
Explanation是啥?是分析数据格式的一个过程,改天写分析数据格式时再说明,呵呵。
つづく