代码溢出 不知道那里出错了
Dim i As IntegerOpen App.Path & "\db.dat" For Random As #1 len=len(db_db)
iNo = LOF(1) / Len(db_db)
For i = 1 To MSFlexGrid1.Rows - 1
iNo = iNo + i
db_db.id = MSFlexGrid1.TextMatrix(i, 1)
db_db.password = MSFlexGrid1.TextMatrix(i, 2)
db_db.answer = MSFlexGrid1.TextMatrix(i, 3)
Put #1, iNo, db_db
MSFlexGrid1.TextMatrix(i, 4) = "成功"
Next i
Close #1
运行一下就溢出了,应该是i数值溢出,put 语句重复录了,但是找不到哪里出错了
[ 本帖最后由 woa 于 2011-2-21 12:06 编辑 ]