Skip to main content
Version: 20 R7 BETA

OBJECT SET SUBFORM CONTAINER VALUE

OBJECT SET SUBFORM CONTAINER VALUE ( value )

ParameterTypeDescription
valueanyNew value for the data source

This command is not thread-safe, it cannot be used in preemptive code.

Description

The OBJECT SET SUBFORM CONTAINER VALUE command sets the current value of the data source bound with the subform container displayed in the parent form.

This command can only be used in the context of a form used as a subform. In any other context, it does nothing.

Pass in value a value of the same type as the data source bound to the subform container. The data source must be an assignable expression (see Assignable vs non-assignable expressions), otherwise the command does nothing.

For more information on bound variables and form/subform interaction, see Managing the bound variable on developer.4d.com.

Example

A detailed example is available in the OBJECT Get subform container value section.

See also

Form
OBJECT Get subform container value