AfterCursorClose Event

Occurs immediately after a cursor closes. You can use this event to reset CursorAdapter properties and so on.

PROCEDURE Object.AfterCursorClose
LPARAMETERS cAlias, lResult

Parameters

  • cAlias
    Specifies the alias of the closed cursor or table.
  • lResult
    Specifies True (.T.) if cursor or table closes successfully and False (.F.) if not closed successfully, for example, cursor contained unsaved changes.

Remarks

You must clear or reset the Alias property if you wish to remove its previous value. When an extended cursor closes, Visual FoxPro marks the CursorAdapter object as no longer attached to a cursor but does not clear the Alias property.

See Also

Methods | CursorAdapter Object Properties, Methods, and Events | Alias Property

Applies To: CursorAdapter Class