⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 vbdde.frm

📁 自己写的VB与组态王互换数据程序 text1 为读组态王数据,text2为向组态王写数据
💻 FRM
字号:
VERSION 5.00
Begin VB.Form Form1 
   Caption         =   "Form1"
   ClientHeight    =   3090
   ClientLeft      =   60
   ClientTop       =   450
   ClientWidth     =   4680
   LinkMode        =   1  'Source
   LinkTopic       =   "FormTopic"
   ScaleHeight     =   3090
   ScaleWidth      =   4680
   StartUpPosition =   3  '窗口缺省
   Begin VB.CommandButton Command1 
      Caption         =   "Command1"
      Height          =   615
      Left            =   2760
      TabIndex        =   2
      Top             =   2160
      Width           =   1455
   End
   Begin VB.Timer Timer1 
      Interval        =   1000
      Left            =   3360
      Top             =   1080
   End
   Begin VB.TextBox Text1 
      Height          =   375
      Left            =   1200
      LinkTimeout     =   1
      TabIndex        =   1
      Text            =   "0"
      Top             =   600
      Width           =   1335
   End
   Begin VB.TextBox Text_to_VIEW 
      Height          =   375
      Left            =   840
      TabIndex        =   0
      Text            =   "Text2"
      Top             =   1920
      Width           =   1455
   End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False


Private Sub Command1_Click()

Text1.LinkTopic = "view|tagname"
Text1.LinkItem = "PLC.static100"
Text1.LinkMode = 1

End Sub

Private Sub Form_Load()
Text_to_VIEW.Text = 1

Text1.LinkTopic = "view|tagname"
Text1.LinkItem = "PLC.static100"



End Sub

Private Sub Text_to_VIEW_Change()
'Text_to_VIEW.Text = Text1.Text

End Sub

Private Sub Timer1_Timer()

Text_to_VIEW.Text = Text_to_VIEW.Text + 1
End Sub

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -