JavaScript Editor js editor     Web development 

Main Page

Frees the currently attached cursor from the current instance of CursorAdapter.


Return Value

Logical data type. CursorDetach returns True (.T.) if cursor is detached successfully and False (.F.) if not detached successfully.

To retrieve error information when CursorDetach 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.


Applies To: CursorAdapter Class

Visual FoxPro preserves all settings, such as buffering and so on, available to a normal cursor in the freed cursor.

Visual FoxPro preserves all unsaved changes. For example, you do not need to call the TABLEUPDATE(В ) function before detaching the cursor.

See Also

JavaScript Editor js editor     Web development