![]() Chapter Contents |
![]() Previous |
![]() Next |
| Image: _attach |
| Syntax | |
| Example |
Syntax |
| CALL NOTIFY (image-name, '_attach', model-id); |
| Argument | Type | Description |
|---|---|---|
| model-id |
N | the model identifier (object identifier) of the new model |
| Example |
This example creates a new instance of the Image Data Model and attaches it to an image object named IMAGEVIEW:
/* load the image data model class */
image_data_class = loadclass('sashelp.
fsp.imgdat.class');
/* create an instance of the image data
model class */
call send (image_data_class, '_new',
objid);
/* set the file name of the model */
call send (objid, '_readFilepath',
'/images/clown.tif');
/* attach the model instance to the
image object. */
/* IMAGEVIEW is the name of the
image object */
/* specified in the Attributes
window. */
call notify ('imageview', '_attach',
objid);
![]() Chapter Contents |
![]() Previous |
![]() Next |
![]() Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.