CURSORADAPTER()

From Lianjapedia
Jump to: navigation, search

Purpose

Function to return a reference to the internal CursorAdapter object for the current or specified ODBC data source in 'use' as a table

Syntax

CURSORADAPTER([<alias>])

See Also

ALIAS(), CursorAdapter, DBF(), SELECT(), SELECT, USE, WORKAREA()

Description

The CURSORADAPTER() function returns a reference to the internal CursorAdapter object for the current or specified ODBC data source in 'use' as a table in the currently selected workarea/cursor. If the optional <alias> is specified, the CURSORADAPTER() function operates on that alias. If the <alias> specified does not exist or no <alias> is specified and the current workarea/cursor is empty, the CURSORADAPTER() function will return .F. (false).

Example

use sales.currency connstr "awhr"
oCa = cursoradapter()
? oCa.alias  // CURRENCY
? oCa.datasource  // awhr
? oCa.datasourcetype  // ODBC