Displays a specified program file for editing, or displays an empty editing window.

Syntax

CREATE COMMAND [<filename> | ? | <filename skeleton>]

<filename> | ? | <filename skeleton>

The file to display and edit. The ? and <filename skeleton> options display a dialog box from which you can select a file. If you specify a file without including its path, dBASE Plus looks for the file in the current directory, then in the path you specify with SET PATH. If you specify a file without including its extension, dBASE Plus assumes .PRG. If you issue CREATE COMMAND without an option, dBASE Plus displays an untitled empty editing window.

Description

Use CREATE COMMAND to create new or edit existing program files. Use DO to execute program files.

If you're creating a new program file, CREATE COMMAND displays an empty editing window. If you specify an existing file, dBASE Plus asks whether you want to modify it. If you reply no, nothing further happens. Use the MODIFY COMMAND command to edit an existing file without being asked whether you want to modify it.

By default, CREATE COMMAND launches the dBASE Plus Source Editor. You can specify an alternate editor by using the SET EDITOR command or by changing the EDITOR setting in PLUS.ini. To do so, either use the SET command to specify the setting interactively, or enter the EDITOR parameter directly in PLUS.ini.

Note

dBASE Plus compiles programs before running them, and assigns the compiled files the same name as the original, but with the letter "O" as the last letter in the filename extension. For example, the compiled version of SALESRPT.PRG would be SALESRPT.PRO. If SALESPRT.PRO already exists, it is overwritten. For this reason, avoid using filename extensions ending in "O" in directories containing compiled programs.