PreviousNextIndex

DEFINE DATA-SOURCE statement

Defines a data-source object that is created at compile time for use in an external procedure or within a single class or class hierarchy.

Syntax

DEFINE [ PRIVATE | PROTECTED ] [ STATIC ] DATA-SOURCE data-source-name  
  FOR [ QUERY query-name ]  
      [ source-buffer-phrase [ , source-buffer-phrase ] ... ] 

[ PRIVATE | PROTECTED ] [ STATIC ] DATA-SOURCE data-source-name FOR
DATA-SOURCE data-source-name FOR
[ QUERY query-name ]
source-buffer-phrase [ , source-buffer-phrase ] ...
buffer-name
KEYS ( { field1 [ , fieldn ]... | ROWID } )
Examples

For examples of data-source definitions and usage, see OpenEdge Development: ProDataSets.

For examples of instance and static data-source data member definitions, see the descriptions of r-CustObj.cls, r-CustObjStatic.cls, and r-CustObjAbstract.cls in the CLASS statement reference entry.

Note

A data-source can be compile-time defined (often referred to as a static data-source object), where the data-source is defined and created at compile time using this statement, or it can be run-time defined (often referred to as a dynamic data-source object), where the data-source is defined and created at run time using the CREATE DATA-SOURCE statement and data-source object handle operations. A compile-time defined data-source can also be defined as a static data member of a class. In this case, it is a static data-source object that is also a class static data member.

See also

Class-based data member access, CREATE DATA-SOURCE statement, Data-source object handle, FILL( ) method, FILL-WHERE-STRING attribute, QUERY attribute


OpenEdge Release 10.2B
Copyright © 2009 Progress Software Corporation
PreviousNextIndex