[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
+---------------------------------+
| CANCEL |
+---------------------------------+
CANCEL
-----------------------------------
Cancels program execution.
-----------------------------------
The CANCEL command aborts execution of a FoxPro program. Control is
returned to either the Command window or to DOS.
If a program is executing under the Runtime version of FoxPro, the
program will terminate and return control to DOS. If a program is
executing under the development version of FoxPro, control is returned
to the Command window.
When the CANCEL command is executed, all private memory variables are
released.
+---------------------------------+
| Program Example |
+---------------------------------+
In this example, memory variable MPASS is examined to see if it is
FOXPRO. If an invalid password has been entered then execution of
program is terminated.
SET TALK OFF
CLEAR
STORE SPACE(6) TO mpass
@ 8,29 SAY 'Password '
@ 8,39 GET mpass
READ
IF UPPER(mpass) = 'FOXPRO'
@ 18,25 SAY 'Password correct'
ELSE
@ 18,25 SAY 'Sorry! Password ' + mpass + ' not accepted'
CANCEL
ENDIF
-----------------------------------
See Also: RESUME, RETURN, SUSPEND
-----------------------------------
See Also:
RESUME
RETURN
SUSPEND
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson