PRB: General Field Containing AVI File Does Not Display Properly

ID: Q171920

The information in this article applies to:

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 has confirmed this to be a problem in the Microsoft products listed at the beginning of this article.

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          : kbVFp kbVFp300 kbVFp500 FoxWin FxotherDisplay 
Version           : 2.6 2.6a 3.0 3.0b 5.0 5.0a
Platform          : WINDOWS
Issue type        : kbprb

Last Reviewed: November 3, 1998