Skip to content

ComLoadPicture - cDesktop

Loads a picture

Type: Function
Return Data Type: Variant

Parameters

Parameter Type Description
sFilename String The filename of the picture to load

Syntax

Function ComLoadPicture String sFilename Returns Variant

Call Example

Get ComLoadPicture sFilename to VariantVariable

Description

The loaded file must be a BMP or ICO. The filename may be CLIPBOARD: and then the contents of the clipboard needs to be a CF_BITMAP.

Return Value

The return value of ComLoadPicture is a Variant value containing a Com object.