ASSERT Command
Displays a message box when a logical expression evaluates to False (.F.).
When the condition stipulated in the ASSERT command evaluates to False (.F.), an assert message box displays and echoes to the Debug Output window in the Debugger.
Note |
|---|
|
ASSERT is disregarded in applications you distribute. |
ASSERT lExpression [MESSAGE cMessageText] |
Parameters
- lExpression
-
Specifies the logical expression to evaluate. If lExpression evaluates to a logical False (.F.), a debugging dialog box displays. If lExpression evaluates to a logical True (.T.), the dialog box does not display.
- cMessageText
-
Specifies the text to display in the debugging dialog box. If you omit cMessageText, the default text displays and indicates the line number on which the assertion failed and the procedure containing the assertion.
Remarks
Example
See Also
© , 1996-2020 • Updated: 11/10/20
Comment or report problem with topic
Note
Microsoft Visual FoxPro 9 SP2 Help file, VFPX Edition v1.08