Skip to main content
Version: Next

OBJECT SET MAXIMUM VALUE

OBJECT SET MAXIMUM VALUE ( {* ;} object ; maxValue )

ParameterTypeDescription
*Operator🡒If specified, object is an object name (string)
If omitted, object is a field or variable
objectForm object🡒Object name (if * is specified) or
Field or variable (if * is omitted)
maxValueDate, Time, Number🡒Maximum value for object

Description

The OBJECT SET MAXIMUM VALUE command modifies the maximum value of the object(s) designated by the object and * parameters for the current process.

The "Maximum Value" property can be applied to number, date or time type data. For more information, refer to Maximum and minimum values in the Design Reference manual.

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

In maxValue, pass the new maximum value you want to assign to the object for the current process. This value must correspond to the object type, otherwise error 18 "Field types are incompatible" is returned.

See also

OBJECT GET MAXIMUM VALUE
OBJECT SET MINIMUM VALUE