Private Sub Form_Load()
Dim aaOpen "c:\大家.asd" For Input As #2
While Not EOF(2)
Input #2, aaPrint aa
Wend
Close #2
End Sub
但放在command1里就行
Private Sub Command1_Click()
Dim aaOpen "c:\大家.asd" For Input As #2
While Not EOF(2)
Input #2, aaPrint aa
Wend
Close #2
End Sub
这样就能显示了。一样的代码,为什么呢?
另外,如果要把文件里的内弄读到其他控件,比如label,或text,print 应该什么写?