Data library DataSearch() Event library
Programming guideline of WinDom

DataDelete()

NAME

DataDelete - Delete a data attached to a window.

PROTOTYPAGE

int DataDelete( WINDOW *win, long magic);

PARAMETERS

win:
targetted window,

magic:
magic number,

return:
0 if no error or a negativ error code.

DESCRIPTION

The function is used to remove a data of a window. DataDelete() is typically call by the window destructor function.

EXAMPLE

     	/* Typical destroy function */
     	void WinDestroy( WINDOW *win) {
     		MY_DATA *data;		/* associated magic number: 'MDTA' */
     
     		/* Get data */
     		data = DataSearch( win, 'MDTA');
     		/* MY_DATA specific function to release data */
     		free_mydata( data);
     		/* Remove data */
     		DataDelete( win, 'MDTA');
     		...
     	}
SEE ALSO

DataAttach(), DataSearch().