DbSetDatagram - method of the AtouchX object
Description:
Sets up datagram monitoring.
The method sets the monitoring of incoming datagrams in the variable specified by
WID. From the calling of the
DbSetDatagram method, each incoming datagram will trigger the
DbDatagram event. until it is cancelled by the
DbResetDatagram method or the object is terminated.
Syntax:
Integer DbSetDatagram(Long WID, Long Param)
Parameters:
WID | (Long) WID of the database variable that is used as the receiving datagram variable. |
Param | (Long) The value that is passed unchanged to the datagram event. |
---|
Example:
JavaScriptVBScriptSelect and copy to clipboard
var oATC = pMe.Pm("/AtouchApp").Acx;
var nWID = 2005;
var nState = oATC.DbSetDatagram(nWID, 85);
Dim oATC, nWID, nState
Set oATC = pMe.Pm("/AtouchApp").Acx
nWID = 2005
nState = oATC.DbSetDatagram(nWID, 85)