Export (0) Print
Expand All
Expand Minimize

AfterCursorFill Event

Visual Studio 2005

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.

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.

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

Community Additions

ADD
Show:
© 2015 Microsoft