AddImage - cImageList
Adds images into the imagelist during the OnCreate event
Type: Function
Return Data Type: Integer
Parameters
| Parameter | Type | Description |
|---|---|---|
| sImage | String | The name of a bitmap file. It can be a fully-qualified name or the name of a file that can be found in the program's Workspace. |
Syntax
Function AddImage String sImage Returns Integer
Call Example
Get AddImage sImage to IntegerVariable
Description
Call the AddImage function during the OnCreate event to add images into the imagelist. If you want to add an image that can be displayed transparently, use the AddTransparentImage instead.
Return Value
The return value is the index of the image that was added. If multiple images are added, then the index of the first image is returned. If the image could not be added, -1 is returned.