CREATE SCREEN - Quick Screen Command

Included for backward compatibility. Use the Form Designer instead.

This command is undocumented in the original VFP9 help file,
but the following documentation was found in the FoxPro for Windows 2.6 help, and may still be valid:

Programmatically creates a screen.

CREATE SCREEN file1 
| ? FROM file2
	[ROW | COLUMN] 
	[FIELDS field list] [ALIAS]
	[NOOVERWRITE] 
	[SIZE expN1,expN2] [SCREEN]

Parameters

file1
 When a filename file1 is included, the screen file is saved under that name. An .SCX extension is automatically assigned. If a screen file with that name already exists and the NOOVERWRITE option isn't included, you are asked if you want to overwrite the existing file (if SET SAFETY is ON).

?
 The Open dialog appears when the question mark (?) is included. A list of existing report files is displayed. Choose one of the existing reports or enter the name of a new report to create.

FROM file2
 Specify the name of the table from which the quick screen is to be created with file2. The table doesn't have to be open.

ROW | COLUMN
 If you include ROW, the quick screen is created with the fields and their names arranged from top to bottom. If you do not include ROW or COLUMN, the quick screen defaults to this format.

 If you include COLUMN, the quick screen is created with the fields and their names arranged from left to right across the screen. If the total width of the fields is greater than the width of the screen, the fields may be displayed in the ROW format.

FIELDS field list
 Including FIELDS lets you specify the fields from the table that appear in the quick screen. Separate the fields in the field list with commas.

ALIAS
 Include ALIAS to add the table alias to the field names in the quick screen.

NOOVERWRITE
 NOOVERWRITE prevents an existing screen from being overwritten. If a screen already exists with the name file1, the screen isn't created.

SIZE expN1, expN2
 You can designate the window height and width by including the SIZE clause. The window height in rows is specified by expN1, the window width in columns by expN2.

SCREEN
 Including SCREEN creates a quick screen that is placed in the main FoxPro window. This clause lets you explicitly place a quick screen in the main FoxPro window when a user-defined window is active. Quick screens are placed in the main FoxPro window by default.

Expand imageRemarks

Expand imageSee Also


© , 1996-2020 • Updated: 11/10/20
Comment or report problem with topic