17782.html
来自「VB技巧问答10000例,是一个教程」· HTML 代码 · 共 22 行
HTML
22 行
<html> <head> <title>A question about array and file</title> </head> <body bgcolor="#FFFFFF" vlink="#808080"> <center> <h1>A question about array and file</h1> </center><hr size=7 width=75%><hr size=7 width=75%><p>Posted by <a href="mailto:soapkkk@netteens.net">soap</a> on August 24, 1999 at 15:40:02:<p>I define a 3D array call map(99,99,2)<br>And save it in a file<br>code:<<br>Dim FileHandle As Integer<br>Dim i As Long<br>filestring=c:\test\test.txt<br>For i1 = 0 To 99<br>For i2 = 0 To 99<br>For i3 = 0 To 2<br>msetkey(i1, i2, i3) = i1 & i2 & i3 : mSetValue(i1, i2, i3) = map(i1, i2, i3)<br>Next i3<br>Next i2<br>Next i1<br>FileHandle = FreeFile<br>Open FileString For Output As #FileHandle<br>For i1 = 0 To 99<br>For i2 = 0 To 99<br>For i3 = 0 To 2<br>Write #FileHandle, msetkey(i1, i2, i3), mSetValue(i1, i2, i3)<br>Next i3<br>Next i2<br>Next i1<br>Close #FileHandle<br>><br>After the program run this sub, the program isn't wrong.<br>But after the program is end, the vb6.0 is hang!<br>Why and how ? <br><br><br><hr size=7 width=75%><p><a name="followups">Follow Ups:</a><br><ul><!--insert: 17782--></ul><!--end: 17782--><br><hr size=7 width=75%><p></body></html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?