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.


This function is deprecated. Use the FromURL method instead.


LoadBitmap(file_name | att | var)

Type Returned:



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.


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:


&Photo = LoadBitmap(ClientPhoto);


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