|
本帖最后由 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
复制代码
|
|