Aracılığıyla paylaş


Program Execution

These commands and functions make it possible for you to control how Microsoft Visual FoxPro programs are executed, suspended, and terminated.

Use

To

BUILD APP Command

Create a standard application (.app) file from a Visual FoxPro project.

BUILD DLL Command

Create a single-threaded Windows dynamic-link library (.dll), or Automation server, using class definitions from a Visual FoxPro project.  

BUILD EXE Command

Create an executable (.exe) file from a Visual FoxPro project.

BUILD PROJECT Command

Create a Visual FoxPro project table (.pjx) file by opening, processing, and including one or more specified program, menu, report, label, form, or library files in the project. 

CANCEL Command

End execution of the current Visual FoxPro program file.

CLEAR Commands

Release the specified item or items from memory.

CLOSE Commands

Close various file types.

COMPILE Command

Compile one or more specified source files and creates an object file for each source file.

CREATE PROJECT Command

Open the Project Manager so you can create a project. 

#DEFINE ... #UNDEF Preprocessor Directive

Create and release compile-time constants.

DO Command

Execute a Visual FoxPro program or procedure.

DO FORM Command

Run a compiled form or form set created with the Form designer.

EXECSCRIPT( ) Function

Enable you to run multiple lines of code from variables, tables, and other text at runtime.

FUNCTION Command

Create a user-defined function in a program file. There are two versions of the syntax.

#IF ... #ENDIF Preprocessor Directive

Conditionally includes source code at compile-time.

#INCLUDE Preprocessor Directive

Instruct the Visual FoxPro preprocessor to treat the contents of a specified header file as if it appeared in a Visual FoxPro program.

_INCLUDE System Variable

Specify a default header file included with user-defined classes, forms, or form sets.

LPARAMETERS Command

Assign data passed from a calling program to local variables or arrays.

MESSAGEBOX( ) Function

Display a user-defined dialog box.

MODIFY PROJECT Command

Open the Project Manager so you can modify or create a project file.

PARAMETERS Command

Assign data from a calling program to private variables or arrays.

PARAMETERS( ) Function

Return the number of parameters passed to the most recently called program, procedure, or user-defined function.

PROCEDURE Command

Create a user-defined procedure in a program file. There are two versions of the syntax.

RELEASE PROCEDURE Command

Close procedure files opened with SET PROCEDURE.

RESUME Command

Continue execution of a suspended program.

RETURN Command

Return program control to a calling program.

RUN | ! Command

Execute external operating commands or programs.

SET ESCAPE Command

Determine whether pressing the ESC key interrupts program and command execution.

SET LIBRARY Command

Open an external API (application programming interface) library file.

SET LOGERRORS Command

Determine whether to send Visual FoxPro compilation error messages to a text file.

SET PROCEDURE Command

Open a procedure file.

SET SYSMENU Command

Enable or disables the Visual FoxPro system menu bar during program execution, and allows you to reconfigure it.

SET UDFPARMS Command

Specify whether Visual FoxPro passes variables by value or by reference to parameters in procedures and user-defined functions (UDFs).

SUSPEND Command

Pause program execution and returns to interactive Visual FoxPro.

SYS(2015) - Unique Procedure Name

Return a unique 10-character procedure name that begins with an underscore followed by a combination of letters and numbers.

WAIT Command

Display a message and pauses Visual FoxPro execution until the user presses a key or clicks the mouse. 

See Also

Other Resources

Programming

Language Categories