Read and update shared variables

Before reading or updating the shared variable, the component object must retrieve references to the collection and shared variable.

  1. Call the JagGetCollection routine to retrieve a reference for a collection. If the component object has just created the collection, the component object doesn’t need to call this routine.

  2. Call the JagGetSharedData or JagGetSharedDataByIndex routine to retrieve a reference to a shared variable. If the component object has just created the shared variable, the component object doesn’t need to call either of these routines.

  3. Call the JagGetSharedValue routine to retrieve a shared variable value.

  4. Call the JagSetSharedValue routine to assign a new value to the shared variable.