DIBMP:LoadDIBFromCodeBlock() Method

<< Click to Display Table of Contents >>

Navigation:  DiBMP Class >

DIBMP:LoadDIBFromCodeBlock() Method

Previous pageReturn to chapter overviewNext page

Purpose

To load a bitmap from the return value of a codeblock.

Syntax

<oDIBMP>:LoadDIBFromCodeBlock(bCodeBlock) lSuccess                                (LOGIC)

Arguments

bCodeBlock

Codeblock who's return value is a bitmap.

Description

This method loads a bitmap from the return value of a codeblock.  The codeblock return value must be a string that contains a valid bitmap.  The bitmap returned from the codeblock must also contain a BITMAPFILEHEADER structure or it is ignored.

 

The BITMAPFILEHEADER structure is a standard Windows structure.  Please refer to the Windows SDK reference for more information.

 

Due to the 64K size limit of strings in a 16 bit application, the size of a bitmap loaded via this method must be less than 64K when using the RP2/16 runtime.

Example

// Load a bitmap from a codeblock

// that references a DBF field

 

bCodeBlock:={|| mytable->bmpfield}

oDIBMP:LoadDIBFromCodeBlock(bCodeBlock)