# Index
{: .no_toc }

Returns or sets the position of the value that a format item refers to.

## Get

Returns a **Long**.

Syntax: *object*.**Index**

*object*
: *required* An object expression that evaluates to a **StringFormatSpecifier**.

The default value is `0`.

## Let

Sets the position.

Syntax: *object*.**Index** **=** *value*

*value*
: A **Long**. The zero-based position of the value in the argument list: `0` for the first value, `1` for the second.

## Remarks

[**StringHelper**](/tB/Packages/Contributed/Fmt/StringHelper.md) sets the property from the number at the start of a format item, so `{2}` gives `2`. The same index can occur in several items. The property is not checked when it is assigned; [**StringHelper**](/tB/Packages/Contributed/Fmt/StringHelper.md) checks the indexes of a whole format string against the number of values.

## Example

```tb check_build check_run
Dim spec As New StringFormatSpecifier
spec.Index = 2
Debug.Print spec.Index       ' 2
Debug.Print spec.ToString()  ' {2}
```

## See Also

- [Alignment](/tB/Packages/Contributed/Fmt/StringFormatSpecifier/Alignment.md) property -- the width of the formatted value
- [ToString](/tB/Packages/Contributed/Fmt/StringFormatSpecifier/ToString.md) method -- includes the index
- [StringFormatSpecifier](/tB/Packages/Contributed/Fmt/StringFormatSpecifier/index.md) class -- overview
