深圳全飞鸿
标题:
VB的MsgBox,inputbox,showmessage,alert,confirm
[打印本页]
作者:
zhgc
时间:
2019-5-26 14:56
标题:
VB的MsgBox,inputbox,showmessage,alert,confirm
本帖最后由 zhgc 于 2019-5-26 15:02 编辑
VB的MsgBox,inputbox,showmessage,alert,confirm
If App.PrevInstance = True Then
MsgBox "不能重复打开程序!", vbExclamation
End
End If
复制代码
If Me.txtscada = "" Then
MsgBox "Please input the scada Name!", vbOKOnly + vbInformation
Exit Sub
End If
复制代码
Exit Sub
errdel:
'Modify by lfl 2004/5/25
MsgBox "frmconfig cmdok_Click Process Error:" & vbCrLf & Err.Description
End Sub
复制代码
If MsgBox("Delete the GW28 of the Station---" & rs!station_name & "?", vbYesNo) = vbYes Then
strsql = "delete from SMT.c_SCADA_config where STATION_NO='" & key & "'"
cn.Execute (strsql)
End If
复制代码
If MsgBox("工单" & Me.CmbWO.Text & "已导入过料表,是否需要重复导入?", vbYesNo + vbQuestion + vbDefaultButton2) <> vbYes Then
Screen.MousePointer = vbDefault
Exit Sub
End If
复制代码
欢迎光临 深圳全飞鸿 (http://www.nagomes.com/disc/)
Powered by Discuz! X3.2