Project.NetSend



NetSend(strDestination As String,pvData As Variant,NetSendType As tpNetSendType,lId As Long) As Boolean

Parameters

strDestination As String
A string wich defines the destination computer. For example: "Workstation_1". This parameter is only evaluated when tpNetSendType = tpToSpecificClient is used.
pvData As Variant
Defines the data which should be sent with the message.

Hint: No zenOn objects can be sent!
NetSendType As tpNetSendType
A constant which defines the different sending types.
lId As Long
This ID specifies a message and makes it possible to differ it from other messages.
ED
not used
RT
avaliable

Remarks

With this method VBA data can be sent over the networt between the different control system computers.

Sample:


Sub ServerNetSend()

'Server should send to all clients whith an ID = 99 and data = "This is a test"
Debug.Print thisProject.NetSend(2, "", 99, "This is a test")

End Sub

tpNetSendType constants:

tpNetSendType Constant
tpToStandby 1
tpToAllClients 2
tpToSpecificClient 3
tpToServer 0

See Also

Project