Specify application-defined data




setappdata(h,name,val) stores values of val in a GUI. The first argument, h, is a handle to a component in the GUI. The second argument, name, is a string that serves as a name for the data. The values of h and name uniquely identify the location of the data so that you can retrieve the values of val elsewhere in your code using the getappdata function.

    Note:   h can be a handle to any GUI component except an ActiveX® component.

Was this topic helpful?