OBJECT Get data source formula
OBJECT Get data source formula ( {* ;} object ) : formula
Parâmetro | Tipo | Descrição | |
---|---|---|---|
* | Operador | → | If specified, object is an object name (string) If omitted, object is a field or variable |
object | any | → | Object name (if * is specified) or Field or variable (if * is omitted) |
formula | 4D.Formula | ← | Formula associated with the form object (Null if no formula is associated) |
Descrição
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
.
Exemplo
You want check what formula (if any) is bound to an object:
$formula:=OBJECT Get data source formula(*; "myInput")
Veja também
OBJECT SET DATA SOURCE FORMULA
LISTBOX GET COLUMN FORMULA
OBJECT SET DATA SOURCE
OBJECT GET VALUE
Propriedades
Número de comando | 1852 |
Thread safe | ✗ |