Microsoft KB Archive/101294: Difference between revisions

From BetaArchive Wiki
m (Text replacement - ">" to ">")
m (Text replacement - "<" to "<")
 
Line 27: Line 27:
2. Select the WHEN clause and enter the command MODIFY GENERAL
2. Select the WHEN clause and enter the command MODIFY GENERAL


<pre>  &lt;fieldname> in the code snippet area as a PROCEDURE.
<pre>  <fieldname> in the code snippet area as a PROCEDURE.
</pre>
</pre>
3. Save the screen changes and regenerate the screen and/or
3. Save the screen changes and regenerate the screen and/or
Line 40: Line 40:
2. Add an invisible button that covers the entire picture. The
2. Add an invisible button that covers the entire picture. The
<pre>  invisible button should have a WHEN clause PROCEDURE that says
<pre>  invisible button should have a WHEN clause PROCEDURE that says
   MODIFY GENERAL &lt;fieldname>.
   MODIFY GENERAL <fieldname>.
</pre>
</pre>
3. Save the screen changes and regenerate the screen and/or
3. Save the screen changes and regenerate the screen and/or

Latest revision as of 10:07, 20 July 2020

PRB: Can't Edit OLE Objects on Screen with Active READ

ID: Q101294

The information in this article applies to:

  • Microsoft FoxPro for Windows, versions 2.5 and 2.5a

SYMPTOMS

You cannot edit an OLE object (stored in a general field) in a screen with an active READ.

CAUSE

A MODIFY GENERAL command was never issued for the OLE object.

RESOLUTION

Use one of the following methods to resolve this problem:

Method 1

1. Use the Field tool to create a general field on the screen.

2. Select the WHEN clause and enter the command MODIFY GENERAL

   <fieldname> in the code snippet area as a PROCEDURE.

3. Save the screen changes and regenerate the screen and/or

   application.

Method 2

1. Use the Picture tool to put a picture of the general field on the

   screen.

2. Add an invisible button that covers the entire picture. The

   invisible button should have a WHEN clause PROCEDURE that says
   MODIFY GENERAL <fieldname>.

3. Save the screen changes and regenerate the screen and/or

   application.

Either of the above methods will allow you to edit bitmaps within the screen when the application is running. Additional reference words: FoxWin 2.50 2.50a BMP MODIFY GENERAL OLE KBCategory: kbole kbprg kbprb KBSubcategory: FxinteropOle


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