Specifications

App - 34
(4) WriteDeviceRandom (Random write of devices)
(a) Usable ACT control
Usable for all ACT controls.
(b) Function
Randomly writes devices.
(c) Format
Visual Basic
®
, VBA: lRet = object.WriteDeviceRandom(szDeviceList, lSize,
lData(0))
Long lRet Return value Output
String szDeviceList Device name Input
Long lSize Number of write points Input
Long lData(n) Device value to be written Input
Visual C++
®
: lRet = object.WriteDeviceRandom(szDeviceList, lSize, *lplData)
Long lRet Return value Output
CString szDeviceList Device name Input
Long lSize Number of write points Input
Long
*
lplData Device value to be written Intput
VBScript: varRet = object.WriteDeviceRandom(varDeviceList, varSize, varData)
VARIANT varRet
Return value (The contents are LONG type.)
Output
VARIANT varDeviceList
Device name (The contents are character string type.)
Input
VARIANT varSize
Number of write points (The contents are LONG type.)
Input
VARIANT varData
Device value to be written (The contents are LONG type.)
Intput
(d) Description
• Writes the devices designated at szDeviceList (varDeviceLicst) by only
device values for lSize (varSize).
The device values to be written are stored in IData (IpIData or varData).
• Partition the character strings designated to the device list by breaking
symbols.
The breaking symbols are not necessary after the last device.
(Examples)
Visual Basic
®
, VBA, VBScript : "D0" & vbLf & "D1" & vbLf & "D2"
Visual C++
®
: D0\nD1\nD2
Ensure the strings longer than Isize (varSize) for IData (IplData or
varData).