---
title: "DropDownValueSelector"
canonical: "https://docs.cuesystem.com/space/CVCGC/477331509/DropDownValueSelector"
format: markdown
---
> Macro (toc)

---

# Description

DropDownValueSelector behaves just like DropDownListBox2, instead of texts and icons set Minimum, Maximum, StepValue and FormatValue. DropDownValueSelector displays values from Minimum to Maximum.

# Properties

See [https://cue.atlassian.net/wiki/spaces/CVCGC/pages/477102136/DropDownListBox2#Properties](https://cue.atlassian.net/wiki/spaces/CVCGC/pages/477102136/DropDownListBox2#Properties) . In addition, this object uses the following properties.

|  |  |  |  |  |
| --- | --- | --- | --- | --- |
| Property Name | Data Type | Allowed Values | Default Value | Description |
| Appearance |
| Minimum | Double | Any | 0.0 | Minimum value of DropDownValueSelector. |
| Maximum | Double | Any | 100.0 | Maximum value of DropDownValueSelector. |
| StepValue | Double | Any | 1.0 | It is discrete step of value change. |
| FormatValue | Text | Any | {n.02} | Sets the format of value. |

# Functions

See [https://cue.atlassian.net/wiki/spaces/CVCGC/pages/477102136/DropDownListBox2#Functions](https://cue.atlassian.net/wiki/spaces/CVCGC/pages/477102136/DropDownListBox2#Functions) . In addition this object uses the following functions.

## SetValue

This function sets Value to newvalue. Function returns True or False (newvalue is out of range minimum and maximum)

#### Syntax

```visualbasic
Function SetValue(newvalue as Double)As Boolean
```

## GetValue

This function returns current Value.

#### Syntax

```visualbasic
Function GetValue()As Double
```

## SetObjectParams

This function sets a newminimum to Minimum, newmaximum to Maximum, newstepvalue to StepValue and newformatvalue to FormatValue. This function returns true.

#### Syntax

```visualbasic
Function SetObjectParams(
  newminimum As Double, 
  newmaximum As Double, 
  newstepvalue As Double, 
  newformatvalue As Text) 
As Boolean
```

# Events

See [https://cue.atlassian.net/wiki/spaces/CVCGC/pages/477102136/DropDownListBox2#Events](https://cue.atlassian.net/wiki/spaces/CVCGC/pages/477102136/DropDownListBox2#Events) .

## OnValueChange

Selected value is delivered in parameter. This event is generated, if a line on ScrollListBox is pressed. Selected value is set as parameter in newselectedvalue.

#### Syntax

```visualbasic
Event OnValueChange(newselectedvalue As Double)
```