4D v14.3

OBJECT Get data source

Home

 
4D v14.3
OBJECT Get data source

OBJECT Get data source 


 

OBJECT Get data source ( {* ;} object ) -> Function result 
Parameter Type   Description
Operator in If specified, object is an object name (string) If omitted, object is a field or variable
object  Form object in Object name (if * is specified) or
Field or variable (if * is omitted)
Function result  Pointer in Pointer to current data source of object

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

 
PROPERTIES 

Product: 4D
Theme: Objects (Forms)
Number: 1265

 
HISTORY 

New
Created: 4D v14

 
SEE ALSO 

OBJECT SET DATA SOURCE

 
ARTICLE USAGE

4D Language Reference ( 4D v14 R3)
4D Language Reference ( 4D v14 R2)
4D Language Reference ( 4D v14.3)
4D Language Reference ( 4D v14 R4)