Using a Variable for a .BMP File in the Screen Builder

Last reviewed: June 26, 1995
Article ID: Q97629
The information in this article applies to:
  • Microsoft FoxPro for Windows, versions 2.5, 2.5a, 2.5b, 2.6

In the Screen Builder, a variable can be used to indicate the .BMP file to display. The normal interface to include a bitmap or OLE object in the screen contains two push buttons: File and Field. The first button will allow a selected file to be displayed, the second will allow a general field in a database to be displayed or played as an OLE object. However, neither of the buttons directly allow using a variable name to indicate the filename of a bitmap file.

To use a variable that assigns a .BMP file in the Screen Builder, you must choose the Field button in the dialog box. Since this button is intended for OLE objects, you must include the word "BITMAP" after the variable name. For example:

   mybmp BITMAP

Without the word "BITMAP" added, the contents of the variable "mybmp" will be displayed on the screen. For example, the Screen Builder will correctly generate this line of code with "BITMAP" added:

   @ row,col SAY mybmp BITMAP ....


Additional reference words: FoxWin 2.50 2.50a bitmap option object linking
and embedding 2.50b 2.60
KBCategory: kbole kbprg
KBSubcategory: FxinteropOle


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: June 26, 1995
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.