Skip to main content

TestAddRange

CAPL Functions » Test Feature Set » TestAddRange Valid for: CANoe DE • CANoe:lite DE • CANoe4SW DE • CANoe4SW:lite DE

Function Syntax

TestAddRange(long handle, double minValue, double maxValue);

Description

This function adds a new range that is allowed for dialog input. This can be a minimum/maximum for a numerical value or a minimum/maximum length of a string or byte array.

Parameters

  • Handle: The handle of the dialog.
  • minValue: The minimum of the input.
  • maxValue: The maximum of the input.

Return Values

Example

handle = TestCreateValueInputRange("Test Text", "Test Caption", "Test Value Input Range Timeout");
TestAddRange(handle, 0, 5);
TestWaitForInput(handle, 5000);
write("Result: %f", TestGetValueInput());