# GpStringDigitSubstitute enumeration
{: .no_toc }

Specifies how digits in a string are replaced according to the locale or the language of the user.

| Member | Value | Description |
|:-------|:------|:------------|
| **StringDigitSubstituteUser**{: #StringDigitSubstituteUser } | `0` | A substitution scheme defined by the user, the setting of the national language support (NLS) of the system. |
| **StringDigitSubstituteNone**{: #StringDigitSubstituteNone } | `1` | No substitution. |
| **StringDigitSubstituteNational**{: #StringDigitSubstituteNational } | `2` | Digits of the official national language of the locale of the user. |
| **StringDigitSubstituteTraditional**{: #StringDigitSubstituteTraditional } | `3` | Digits of the native script or language of the user, which can differ from the official national language of the locale. |

## Used by

- [**StringFormat**](/twinBASIC-docs/tB/Packages/Contributed/GdiPlus/StringFormat.md) class: [**DigitSubstitutionMethod**](/twinBASIC-docs/tB/Packages/Contributed/GdiPlus/StringFormat.md#digitsubstitutionmethod), [**SetDigitSubstitution**](/twinBASIC-docs/tB/Packages/Contributed/GdiPlus/StringFormat.md#setdigitsubstitution)

## See Also

- [StringDigitSubstitute](https://learn.microsoft.com/en-us/windows/win32/api/gdiplusenums/ne-gdiplusenums-stringdigitsubstitute) -- Microsoft's documentation of the GDI+ enumeration
- [Enumerations](/twinBASIC-docs/tB/Packages/Contributed/GdiPlus/Enumerations/index.md) -- all the enumerations of the package
- [StringFormat](/twinBASIC-docs/tB/Packages/Contributed/GdiPlus/StringFormat.md) class
