-
-
jiewinds 发表于 2004/12/4 9:33:27
发送端: Option Explicit '''''''''''''''''''''''''''''''''''''' Private Sub CmdExit_Click() Comm1.PortOpen = False End End Sub '''''''''''''''''''''''''''''''''''''' Private Sub CmdSend_Click() Comm1.Output = Trim(txtsend.Text) End Sub '''''''''''''''''''''''''''''''''''''' Private Sub Form_Load() Comm1.PortOpen = True End Sub —————————————————————————————————————— 接收端: Private Sub cmdexit_Click() Comm1.PortOpen = False End End Sub '''''''''''''''''''''''''''''''''''''' Private Sub CmdReceive_Click() Dim buf$ buf = Trim(Comm1.Input) If Len(buf) = 0 Then TxtReceive.Text = "empty" Else TxtReceive.Text = buf End If End Sub Private Sub Form_Load() Comm1.PortOpen = True End Sub (转载)2楼 回复本楼
引用 jiewinds 2004/12/4 9:33:27 发表于2楼的内容
-
引用 匿名 2005/7/7 11:51:51 发表于3楼的内容
-
引用 匿名 2005/7/17 21:54:30 发表于4楼的内容
-
引用 z-jzhao 2005/10/19 13:26:56 发表于5楼的内容