vb active如何接收para参数
WUNEN 2008-10-08 03:04:45 源码如下,要从WEB页上带je参数进去发给串口,该如何写啊
Const m_def_je = 0
Dim m_je As Variant
Private Sub UserControl_Initialize()
If Not MSComm1.PortOpen Then
MSComm1.CommPort = 1 '选用com1串行口
MSComm1.Settings = "9600,n,8,1" '波特率9600,无奇偶校验位,8位数据位1位停止位
MSComm1.InBufferSize = 1024 '设置接收缓冲区的字节长度
MSComm1.PortOpen = True '打开通信口
End If
'MSComm1.OutBufferCount = 0 '...清空输出寄存器
MSComm1.Output = "@" & je & "aa"
End Sub
Private Sub UserControl_InitProperties()
m_je = m_def_je
End Sub
'从存贮器中加载属性值
Private Sub UserControl_ReadProperties(PropBag As PropertyBag)
m_je = PropBag.ReadProperty("je", m_def_je)
End Sub
'将属性值写到存储器
Private Sub UserControl_WriteProperties(PropBag As PropertyBag)
Call PropBag.WriteProperty("je", m_je, m_def_je)
End Sub
'注意!不要删除或修改下列被注释的行!
'MemberInfo=14,0,1,0
Public Property Get je() As Variant
je = m_je
End Property
Public Property Let je(ByVal New_je As Variant)
If Ambient.UserMode = False Then Err.Raise 387
m_je = New_je
PropertyChanged "je"
End Property