How to Use the #INSERT Preprocessor DirectiveLast reviewed: June 27, 1995Article ID: Q109145 |
The information in this article applies to:
SUMMARYYou can include code written into a file in a screen or menu by using the #INSERT generator directive, as described below.
MORE INFORMATIONAlthough the "Developer's Guide" lists most of the generator directives supported by GENSCRN and GENMENU (the screen and menu generator programs), only the online help system describes the #INSERT generator directive. The online help gives the following syntax:
#INSERT <file>Developers familiar with C may be tempted to interpret the angle brackets as literals and incorporate them into the actual #INSERT statement. As described in the syntax conventions on page L1-8 of the FoxPro "Language Reference," angle brackets surrounding lowercase text indicate information that the user supplies. To correctly use the #INSERT generator directive, do the following:
NOTE: Neither GENSCRN nor GENMENU allows quotation marks to be used to delimit the filename. This may cause problems on the Macintosh, which allows for volumes and filenames with embedded spaces. To work around this limitation, use the following guidelines when storing files to be inserted in a folder other than the default:
|
Additional reference words: MBuilder FoxMac FoxDos FoxWin 2.00 2.50 2.50a
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |