LoadBitmap function

Official Content
This documentation is valid for:

The function LoadBitmap is used to define the image that will be associated with a variable.

Note

This function is deprecated. Use the FromURL method instead.

Syntax

LoadBitmap(file_name | att | var)

Type Returned:

Image

Where:

File_name | att | var
     Path name of the file containing the image.

The name of the file containing the image may be specified as a string between quotes, an attribute or a variable. If the extension name is not added, then *.bmp is assumed. They usually are *.BMP, *.WMF, *.EMF, *.GIF or *.ICO type files.

Example

We have defined a Clients Transaction (Code* Name ClientPhoto) where the ClientPhoto attribute contains the pathname of the file (BMP type) that contains the client's photo. To display the client's photo on the form you must define a variable of the image type, for example: &Photo, and place it in the Form by adding the following rule:

Rules:

&Photo = LoadBitmap(ClientPhoto);

Scope

Objects Procedure object, Transaction object, Web Panel object
Languages .NET, Java, Ruby, Visual FoxPro