Skip to main content
Version: 21 R2 BETA

OBJECT SET VALUE

OBJECT SET VALUE ( objectName : Text ; value : any )

ParameterTypeDescription
objectNameTextObject name
valueanyNew value for the form object's data source
History
ReleaseChanges
18 R4Created

Description

OBJECT SET VALUE sets the value of the current data source for the form object(s) designated by the objectName parameter.

In the objectName parameter, pass the name of a form object (a string). You can set the value of multiple form objects by using the wildcard character (“@”).

The value parameter allows you pass a new value (any type) for the form object's data source.

Note: If the data source is a non-assignable expression, OBJECT SET VALUE does nothing. For more information, see assignable vs non-assignable expressions.

Example

You want to get the data source value for a form object, get its name, and set a new value:

 var $value : Variant
 
 $value:=OBJECT Get value(OBJECT Get name(Object current)) //verify the set value
 
 OBJECT SET VALUE(OBJECT Get name(Object current);$value+10) //find the form object name and set the value to 50

See also

OBJECT Get value

Properties

Command number1742
Thread safeno