Share via


AfterCursorFill Event

Occurs immediately after a CursorAdapter object attempts to create a new cursor.

PROCEDURE Object.AfterCursorFill
LPARAMETERS lUseCursorSchema, lnoDataOnLoad, cSelectCmd, lResult

Parameters

  • lUseCursorSchema
    Specifies the value in the lUseCursorSchema parameter from the CursorFill method.

  • lnoDataOnLoad
    Specifies the value in the lNoData parameter from CursorFill.

  • cSelectCmd
    Specifies the same SelectCmd parameter used by the BeforeCursorFill event.

  • lResult
    Specifies the True (.T.) or False (.F.) value returned by CursorFill.

Remarks

Applies To: CursorAdapter Class

If any of the first three parameters are changed in BeforeCursorFill, AfterCursorFill uses the changed values instead of actual values in the properties, which do not change.

In Visual FoxPro 9.0, the target record is kept current in an ADODB.Recordset during the AfterCursorFill event.

Example

The following example illustrates using the AfterCursorFill event to set the index order from a preset property:

PROCEDURE AfterCursorFill
LPARAMETERS lUseCursorSchema, noDataOnLoad, cSelectCmd, lResult
SELECT (this.Alias)
SET ORDER TO (this.Order)
ENDPROC

See Also

Reference

CursorAdapter Object Properties, Methods, and Events

CursorFill Method

SelectCmd Property

AfterCursorFill Event

BeforeCursorFill Event

Other Resources

Events (Visual FoxPro)