Use the findobj function to search for a component wherever you code does not have direct access to that component. You can store any data in the UserData property of a UI component or figure. For example, the following programmatic UI code uses the UserData property to share information about the slider. To see how it works, copy and paste this code into an editor and run it.