VB6中判断用户是否按下了InputBox的取消按钮

原帖:http://blog.csdn.net/Modest/archive/2006/10/21/1344314.aspx

Private Sub Command1_Click() Dim str As String Dim Cancel As Boolean str = InputBox("") Cancel = Not CBool(StrPtr(str)) MsgBox Cancel End Sub

你可能感兴趣的:(String,command,vb)