Private Sub Command1_Click()
Dim A As Long
A = WritePrivateProfileString("aa", "bb", Text1.Text, App.Path & "\123.INI")
If A = 0 Then MsgBox ("写文件时出错")
End SubPrivate Sub Command2_Click()
Dim Result As Long
Dim BufferStr As String * 255
Result = GetPrivateProfileString("aa", "bb", "", BufferStr, Len(BufferStr), App.Path & "\123.INI")
If Result = 0 Then
GetINIstr = ""
Else
GetINIstr = Left(BufferStr, Result)
End If
End Function
End Sub点击COMMAND2的时候出错,提示缺少END SUB
不知道是怎么搞得