Difference between revisions of "CURSORADAPTER()"

From Lianjapedia
Jump to: navigation, search
(Created page with "==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([<a...")
 
 
Line 6: Line 6:
  
 
==See Also==
 
==See Also==
[[ALIAS()]], [[Cursoradapter]], [[DBF()]], [[SELECT()]], [[SELECT]], [[USE]], [[WORKAREA()]]
+
[[ALIAS()]], [[CursorAdapter]], [[DBF()]], [[SELECT()]], [[SELECT]], [[USE]], [[WORKAREA()]]
  
 
==Description==
 
==Description==

Latest revision as of 11:41, 16 January 2013

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