Promotic

NetGetData - method of the AtouchX object

Description:
Reads the whole database variable.
The method writes the content of the entire database variable or database matrix. The writing is performed asynchronously, after the writing is finished the EndNetPutData event is triggered, which reports the result of the communication. The event is also passed the Param value, which is used by the user for identification.
 
The written content must match the database variable being written. If written to a simple database variable then DATA must be a simple value. If a matrix is written then DATA must be a two-dimensional array, whose number of rows and columns corresponds to the number of rows and columns being written. When writing just one element of a database matrix, DATA can be either a single value or a two-dimensional array of one row and one column.
 
DATA must be of such a type that its values can be written without losing information to a database variable.
Syntax:
Integer NetGetData(Long WID, Variant Param, Variant DATA)
Parameters:
WID(Long) WID of the database variable to be written.
Param(Variant) The value that is passed unchanged to the write termination event.
DATA(Variant) Written content of the database variable.
Return values:
Example:
JavaScriptVBScriptSelect and copy to clipboard

var oATC = pMe.Pm("/AtouchApp").Acx;
var nWID = 2005;
var nParam = 100;
var DATA = 24;
var nState = oATC.NetGetData(nWID, nParam, DATA);
PROMOTIC 9.0.21 SCADA system documentation - MICROSYS, spol. s r.o.

Send page remarkContact responsible person
© MICROSYS, spol. s r. o.