NoDataOnLoad Property

Causes the view associated with a Cursor to activate without downloading data. Available at design time; read/write at run time.

DataEnvironment.Cursor.NoDataOnLoad[ = lExpr]

Return Value

  • lExpr
    The settings for the NoDataOnLoad property are:

    Setting

    Description

    True (.T.)

    The view associated with the Cursor is opened without downloading data.

    False (.F.)

    (Default) The view associated with the Cursor is opened with data.

Remarks

Applies To: Cursor

Note

When the Cursor object is accessed using CURSORSETPROP(), the NoDataOnLoad property is read-only at run time.

Use the NoDataOnLoad property to ensure that the FormSet or Form associated with the view loads quickly (it can be time-consuming to download data from a backend server). You can use REQUERY( ) in conjunction with NoDataOnLoad to download data into the active view once the Form is loaded.

The NoDataOnLoad property mimics the behavior of the NODATA clause of USE.

See Also

Reference

REQUERY( ) Function

USE Command

Other Resources

Properties (Visual FoxPro)