The information in this article applies to:
SUMMARY
This article describes how to use the APPEND GENERAL command to place PICT
files into a Visual FoxPro general field. It also provides some information
on problems that might occur and how to correct them.
APPEND GENERAL <generalfield> FROM <filename> ;NOTE: This command should be all on one line. It is shown here on two lines due to space limitations. To determine what to enter for the CLASS clause on the APPEND GENERAL command, modify a general field in Visual FoxPro. Then choose the Insert Object command from the Edit menu. The items listed are the class names that will work with the APPEND GENERAL command. MORE INFORMATIONVisual FoxPro ships with some PICT files. They are located in the "Microsoft Visual FoxPro:Samples:Graphics" folder. These graphics are contained in self-extracting archive (sea) files. To follow the steps below, double-click the Picts.sea to extract the PICT files. Store them in the default folder specified "Picts folder." Step-by-Step ExampleThe following steps are necessary to use the APPEND GENERAL command to place a PICT file into a Visual FoxPro general field:
This PICT file should Append with no problems. However, it is small. PICT files larger than the samples shipped with Visual FoxPro may require more memory to be allocated to Imager before they can be successfully Appended. By default, Imager has 4096K allocated to it. Increasing this to 8192K will allow larger PICT files to be inserted into the general field with the APPEND GENERAL command or by going through the interface and choosing the Insert Object command from the Edit menu when the general field has been opened (MODIFY GENERAL olefield). For additional information, please see the following article in the Microsoft Knowledge Base: Q151636 BUG: Insert Object of an Imager file Causes Error or Hangs MacThe following program can be used to automate changing the creator of the PICT file to Imager and appending the PICTS into a general field. The program assumes that the Picts.sea file found in the Microsoft Visual FoxPro:Samples:Graphics folder has been unstuffed and the following is the folder path to the Outline PICT files:
There are only six Outline PICT files. This process can take a long time if
a large number of files are involved.
Additional query words: VfoxMac
Keywords : FxprgGeneral |
Last Reviewed: August 25, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |