Saltar al contenido principal
Versión: Siguiente

OBJECT Get data source formula

OBJECT Get data source formula ( {* ;} object ) : formula

ParámetrosTipoDescripción
*OperadorIf specified, object is an object name (string)
If omitted, object is a field or variable
objectanyObject name (if * is specified) or
Field or variable (if * is omitted)
formula4D.FormulaFormula associated with the form object (Null if no formula is associated)

Descripción

The OBJECT Get data source formula command returns the formula (if any) associated object(s) designated by the object and * parameters.

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).

When a formula is associated with a form object, it acts as the object's data source at runtime.

If this command is applied to an object with no custom formula assigned, it returns the automatically assigned dynamic form variable.
If the object does not exist or does not support formulas, it returns Null.

Ejemplo

You want check what formula (if any) is bound to an object:

$formula:=OBJECT Get data source formula(*; "myInput")

Ver también

OBJECT SET DATA SOURCE FORMULA
LISTBOX GET COLUMN FORMULA
OBJECT SET DATA SOURCE
OBJECT GET VALUE

Propiedades

Número de comando1852
Hilo seguro