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.

NoteNote

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.

Expand imageRemarks

Expand imageExample

Expand imageSee Also


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