Public Sub init()
Dim tt As Control
For Each tt In Me.Controls
If TypeOf tt Is TextBox Then
tt = ""
ElseIf TypeOf tt Is ComboBox Then
tt.Text = ""
End If
Next
...全文
111回复打赏收藏
VB编译EXE文件的时候出现编译错误,无效使用Me关键字?怎么解决啊?
Public Sub init() Dim tt As Control For Each tt In Me.Controls If TypeOf tt Is TextBox Then tt = "" ElseIf TypeOf tt Is ComboBox Then tt.Text = "" End If Next