Official Content

Deprecated: Replaced by the FromURL method.

Defines the image that will be associated with a variable.

Syntax

LoadBitmap(file_name | att | var)

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.

Type Returned:
Image

Scope

Objects: Procedure, Transaction, Web Panel, Data Provider
Generators: .NET, .NET Framework, Java, Ruby (up to GeneXus X Evolution 3), Visual FoxPro (up to GeneXus X Evolution 3)

Samples

Define 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);

 




 

Last update: February 2024 | © GeneXus. All rights reserved. GeneXus Powered by Globant