How to Create a Screen with a User-Defined TitleID: Q105280 2.00 2.50 2.50a | 2.50 2.50a
The information in this article applies to:
SUMMARYIt is sometimes desirable to allow the user to specify a title for a screen using variables or other hard-coded values. You can do this by using generator directives in the screen setup code, as described below.
MORE INFORMATION
FoxPro for Windows1. Create or modify an existing screen. 2. From the Screen menu, choose Layout. In the Title box, type the 3. Choose the Code button. In the Screen Setup Code box, type the
4. Generate the screen with the name SCREEN1.SPR.
5. Run the screen by entering the following code in a program or in The screen will be displayed with whatever character expression is
assigned to title1.
If you have a memory variable (numeric) with a value of 1027, and you try either of these methods, you will get the literal string of the tilde and the memvar, not the substitution. To display the title properly, do the following: 1. In the Command window, type the following:
2. From the Screen menu, choose Quick Screen.
3. From the Screen menu, choose Layout. In the Name box, type "mytest" 4. In the Screen Layout dialog box, choose the Code button, and type the
FoxPro for MS-DOS
1. Create or modify an existing screen. 2. From the Screen menu, choose Screen Layout, and select Window. In 3. Under Screen Code, select Setup, and then choose OK. In the Setup
4. Generate the screen with the name SCREEN1.SPR.
5. Run the screen by entering the following code in a program or in The screen will be displayed with whatever character expression is
assigned to title1.
REFERENCES"Developer's Guide," (MS-DOS), versions 2.0 and 2.5, pages D2-31 to D2-32 "Developer's Guide," (Windows), version 2.5, pages D2-38 to D2-40 Additional reference words: FoxDos FoxWin 2.00 2.50 2.50a KBSubcategory: FxenvMemory
|
|
Last Reviewed: May 22, 1998 © 1999 Microsoft Corporation. All rights reserved. Terms of Use. |