VB6中判断用户是否按下了InputBox的取消按钮
Dim s As String
Dim Cancel As Boolean
s = InputBox("")
Cancel = Not CBool(StrPtr(s))
MsgBox Cancel
- 上一篇 »VB6关于判断模态窗体的问题
- 下一篇 »VB6 MsgBox 函数
Dim s As String
Dim Cancel As Boolean
s = InputBox("")
Cancel = Not CBool(StrPtr(s))
MsgBox Cancel