PRB: General Field Containing AVI File Does Not Display Properly

Last reviewed: July 24, 1997
Article ID: Q171920
The information in this article applies to:
  • Microsoft FoxPro for Windows, versions 2.6, 2.6a
  • Microsoft Visual FoxPro for Windows, versions 3.0, 3.0b, 5.0, 5.0a

SYMPTOMS

When using the @ SAY command to play an .avi file that is stored in a general field in FoxPro, the location of where the general field is played does not obey the coordinates set by the @ SAY command. The position of where it is played changes each time the @ SAY is used.

RESOLUTION

Look in the MORE INFORMATION section and use the article listed there to play an .avi file.

STATUS

Microsoft is researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.

MORE INFORMATION

Using the @ SAY command, you can play an .avi file that has been stored in a general field. Issuing the command below:

   @ 1,1 SAY <general field name> VERB "play"

Issuing the command several times shows that the general field is displayed at a different location on the screen each time the command is issued. Since the @ SAY coordinates are "1,1", the general field should play in the upper-left corner of the screen each time. This behavior is evident whether using FoxPro for Windows 2.x or Visual FoxPro for Windows 3.0 and 5.0 on any operating system.

For more information about playing an .avi file, please see the following article in the Microsoft Knowledge Base:

   ARTICLE-ID: Q124775
   TITLE     : How to Play an .AVI File Using FoxPro for Windows

Steps to Reproduce Behavior

  1. Create a table with a general field.

  2. Add a record to the table and open the general field by clicking on the word "gen" in a Browse window of the table or by issuing a MODIDY GENERAL {general field name} as a command.

  3. Choose the Edit menu pad and select the Insert Object menu bar.

  4. If using FoxPro for Windows 2.x, follow these steps:

    a. Select either "Movie Clip (AVI) or "Media Clip" from the Insert

          Object box and click OK.
    

    b. From the File menu, select Open.

    c. Locate the .avi file that is to be placed in the general field and

          click Open.
    

    d. The .avi file now appears and after clicking the File menu and

          selecting Update FoxPro, the .avi file appears in the general field.
    

    e. Close the movie or media player, the general field, and the Browse

          window.
    

    If using Visual FoxPro, follow these steps:

    a. Select the "Create from File" radio button and search for the file

          with the Browse button.
    

    b. Click OK and close the Browse window.

  5. At the Command window, issue the following command:

          @ 1,1 SAY <general field name> VERB "play"
    

Note the position of the screen where the .avi file plays. Run the command again and observe that the position changes each time that the command is issued.


Keywords : foxwin FxotherDisplay vfoxwin
Version : 2.6 2.6a 3.0 3.0b 5.0 5.0a
Platform : WINDOWS
Issue type : kbprb


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: July 24, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.