深圳全飞鸿

 找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 600|回复: 0
打印 上一主题 下一主题

VB的MsgBox,inputbox,showmessage,alert,confirm

[复制链接]

800

主题

1379

帖子

7704

积分

版主

Rank: 7Rank: 7Rank: 7

积分
7704
跳转到指定楼层
楼主
发表于 2019-5-26 14:56:54 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
本帖最后由 zhgc 于 2019-5-26 15:02 编辑

VB的MsgBox,inputbox,showmessage,alert,confirm

  1. If App.PrevInstance = True Then
  2.     MsgBox "不能重复打开程序!", vbExclamation
  3.     End
  4. End If
复制代码

  1. If Me.txtscada = "" Then
  2.    MsgBox "Please input the scada Name!", vbOKOnly + vbInformation
  3.    Exit Sub
  4. End If
复制代码

  1. Exit Sub
  2. errdel:
  3.     'Modify by lfl 2004/5/25
  4.    MsgBox "frmconfig cmdok_Click Process Error:" & vbCrLf & Err.Description
  5.    
  6. End Sub
复制代码

  1.    If MsgBox("Delete the GW28 of the Station---" & rs!station_name & "?", vbYesNo) = vbYes Then
  2.       strsql = "delete from SMT.c_SCADA_config where STATION_NO='" & key & "'"
  3.       cn.Execute (strsql)
  4.   End If
复制代码

  1.     If MsgBox("工单" & Me.CmbWO.Text & "已导入过料表,是否需要重复导入?", vbYesNo + vbQuestion + vbDefaultButton2) <> vbYes Then
  2.         Screen.MousePointer = vbDefault
  3.         Exit Sub
  4.     End If
复制代码


回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|小黑屋|nagomes  

GMT+8, 2025-5-5 01:52 , Processed in 0.026914 second(s), 21 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表