The attached example illustrates how to determine which boolean of a 2-d array changed value.
It uses an event configured for a value change of the control. When the event fires;
A) the old and new values are compared to determine which boolean changed states. This results in a 2-d array of booleans.
B) The array dimensions are used to re-shape the array.
C) The array is re-shaped and searched for the true boolean (indicating it has changed states).
D) The index of the changed boolean can be used to act on the physical devices as your application dicatates. The remander quotent function allows you address your devices by row and collumn of the array control.
Ben
Message Edited by Ben on 11-24-2006 12:09 PM