Getdata, Setdata, Manual eks activex – EUCHNER ActiveX Module serial/USB User Manual

Page 9: Module serial / usb, 5 getdata, 6 setdata

Advertising
background image

Manual EKS ActiveX

®

Module serial / USB

3.4.5 getData

 Description

Reading access to the internal memory area of the ActiveX

module, in which the read

data of the method Read or the event OnKey are stored.

 Syntax

short = getData (short ByteIndex);

 Comments

With the method getData, the internal memory area of the ActiveX

module can be

read. Upon triggering the events OnRead or OnKey, the key data are available in the
internal memory and can be read using getData. In the properties StartAdress and
CountData, the range is defined from which byte data shall be read (method Read).

Information!
This is an additional way of accessing the internal memory of the ActiveX

module. This method can

be used in programming environments which do not offer array support. Usually, the internal memory
area is accessed via the property Data, see section 3.5.14.

3.4.6 setData

 Description

Writing access to the internal memory area of the ActiveX

module, in which the data to

be written of the method Write are stored.

 Syntax

object.setData (short Bytelndex, short DataValue);

 Comments

With the method setData, the internal memory area of the ActiveX

module can be

written. Upon triggering the event OnWrite, the data are written from the temporary
storage to the key. In the properties StartAdress and CountData, the range is defined
from which byte data shall be written (method Write).

Information!
This is an additional way of accessing the internal memory of the ActiveX

module. This method can

be used in programming environments which do not offer array support. Usually, the internal memory
area is accessed via the property Data, see section 3.5.14.

098655-03-10/12

Subject to technical modifications

Page 9

/

20

Advertising