标题:[求助]怎样把这样一段数据分离到msflexgrid里
只看楼主
西门吹水
Rank: 1
等 级:新手上路
帖 子:1
专家分:0
注 册:2007-6-25
 问题点数:0 回复次数:0 
[求助]怎样把这样一段数据分离到msflexgrid里
2007-09-18 11:06:23 |左机A1#缸排气温度|0
2007-09-18 11:06:23 |左机A2#缸排气温度|0
2007-09-18 11:06:23 |左机A3#缸排气温度|0
2007-09-18 11:06:23 |左机A4#缸排气温度|0
2007-09-18 11:06:23 |左机A5#缸排气温度|0
2007-09-18 11:06:23 |左机A6#缸排气温度|0
2007-09-18 11:06:23 |左机B1#缸排气温度|0
2007-09-18 11:06:23 |左机B2#缸排气温度|0
2007-09-18 11:06:23 |左机B3#缸排气温度|0
2007-09-18 11:06:23 |左机B4#缸排气温度|0
2007-09-18 11:06:23 |左机B5#缸排气温度|0
2007-09-18 11:06:23 |左机B6#缸排气温度|0
把这一组数据分离到msflexgrid中,我做了个却出现下标越界我不知道为什么会出现这个情况,大家帮帮我

我的代码部分:
Dim i, j, z, p As Integer
Dim splita() As String
Dim splita1() As String
Dim file As Integer
Dim instring As String
Dim filename As String
p = 1
filename = App.Path & "\L-2007-09-18.bsd"
'Debug.Print filename
Open filename For Input As #1
While Not EOF(1)
Line Input #1, instring
'Debug.Print instring
splita = Split(instring, "|")
For i = 0 To UBound(splita)
Debug.Print splita(i)
MSFlexGrid1.TextMatrix(p, i) = splita(i)
Next i
p = p + 1
Wend
Close #1
搜索更多相关主题的帖子: msflexgrid 数据 
2007-10-30 19:27



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-182072-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.018312 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved