Navigation: Language Reference > App A - DDE, OLE, and OCX > OCX Library Procedures >====== OCXLOADIMAGE (return an image object) ====== | |
OCXLOADIMAGE( name )
OCXLOADIMAGE | Returns an image object. |
name | A string expression containing the name of the file or resource to load. |
OCXLOADIMAGE returns an image object. This image object can be assigned to any control that uses an image object (such as a VB imagelist control).
Return Data Type: STRING
Example:
!Add an image to an ImageList control:
?imagelist{'ListImages.Add(,,' & OCXLOADIMAGE('CLOCK.BMP') & ')'}