> ## Documentation Index
> Fetch the complete documentation index at: https://notevil.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# CAPLfunctionSetMinMax

# SetMinMax

[Valid for](../../../Shared/FeatureAvailability.md): CANoe DE • CANoe4SW DE

## Function Syntax

```plaintext theme={null}
bool SetMinMax(char[] panel, char[] control, float min, float max);
```

## Description

Sets the minimum and maximum value of: [certain panel controls](../../../../../Subsystems/VectorToolsEnvironment/Content/Topics/PanelDesigner/General/PanelDesignerCAPLFunctions.md)

The panel is accessed by its individual panel name that is entered in the *Panel Designer*.

## Parameters

* **panel**: Panel name, restricted to 128 characters. "" – references all loaded panels.
* **control**: Name of the control, restricted to 128 characters. "" – references all elements on the panel.
* **minimum**: Minimum value to be set.
* **maximum**: Maximum value to be set.

## Return Values

If the values were set, the return value is 1, else 0.

## Example

```plaintext theme={null}
SetMinMax("Measurements", "MyLevelMeter", 50, 100);
```

[SetControlBackColor](CAPLfunctionSetControlBackColor.md) • [SetControlProperty](CAPLfunctionSetControlProperty.md) • [SetControlColors](CAPLfunctionSetControlColors.md) • [SetDefaultControlColors](CAPLfunctionSetDefaultControlColors.md)
