Before reading or updating the shared variable, the component object must retrieve references to the collection and shared variable.
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.
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.
Call the JagGetSharedValue routine to retrieve a shared variable value.
Call the JagSetSharedValue routine to assign a new value to the shared variable.