Share via


BreakOnError Property

Specifies whether Visual FoxPro permits errors to break program execution at the location where they occurred or sends them to the cursor adapter. Read/write at design time and run time.

BreakOnError applies only when the cursor adapter executes an event or an SQL INSERT, UPDATE, or DELETE command.

CursorAdapter.BreakOnError [= lValue]

Return Value

  • lValue
    Logical data type. The following table lists the values for lValue.

    lValue

    Description

    False (.F.)

    Visual FoxPro does not display an error message and sends the error to the cursor adapter. (Default)

    This behavior is the same as if Visual FoxPro raised an error, and the user cancelled execution. The error routine makes the last unhandled error available to the calling routine.

    True (.T.)

    Visual FoxPro permits the execution of the event or method to break at the location where the error occurs and displays an error message.

Remarks

Applies To: CursorAdapter Class

See Also

Reference

CursorAdapter Object Properties, Methods, and Events

Other Resources

Properties (Visual FoxPro)