Compartir a través de


AutoOpen Method

Executes the CursorFill method with a default of no parameters. When the CursorAdapter object exists in a data environment, the data environment calls AutoOpen automatically from within the DataEnvironment OpenTables method.

CursorAdapter.AutoOpen()

Return Value

Logical data type. AutoOpen returns True (.T.) if successful. Otherwise, AutoOpen returns False (.F.).

Note

If AutoOpen fails, the DataEnvironment OpenTables method does not report an error. To retrieve error information when AutoOpen returns False (.F.), you must call the AERROR( ) Function function because Visual Foxpro error handling, such as the ON ERROR command, Error event, and TRY...CATCH...FINALLY command, does not capture this error information.

Remarks

Applies To: CursorAdapter Class

You can override AutoOpen by using the NODEFAULT command and explicitly calling CursorFill.

See Also

Reference

CursorAdapter Object Properties, Methods, and Events

CursorFill Method

AutoOpenTables Property

NODEFAULT Command

Other Resources

Methods (Visual FoxPro)