Skip to main content
Version: 21 R3

OBJECT Get data source

OBJECT Get data source ( * ; object : Text ) : Pointer
OBJECT Get data source ( object : Variable, Field ) : Pointer

ParameterTypeDescription
*Operator→If specified, object is an object name (string) ; if omitted, object is a variable or a field
objectText, Variable, Field→Object name (if * is specified) or
Variable or field (if * is omitted)
Function resultPointer←Pointer to current data source of object
History
ReleaseChanges
14Created

Description​

The OBJECT Get data source command returns the current data source of the object(s) designated by the object and * parameters.

You can define the data source for an object in Design mode using the Property List, or using the OBJECT SET DATA SOURCE command.

Passing the optional * parameter indicates that the object parameter is an object name (string). If you do not pass this parameter, it indicates that the object parameter is a field or variable. In this case, you pass a field or variable reference instead of a string (field or variable object only).

Example​

Given a combo box object defined in a form:

You execute the following code:

 $vPtr :=OBJECT Get data source(*;"vCombo")
  // $vPtr contains -> vCombo

See also​

OBJECT SET DATA SOURCE
OBJECT Get data source formula

Properties​

Command number1265
Thread safeno