# CMS_UseAlternativeColorSchemeAt

> Defines when end user cancellation messages should be displayed using an Alternative Color Scheme(ACS).

Source: https://docs.capaone.com/capainstaller/vb-scripting-library/cms-functions/cms-usealternativecolorschemeat/  
Product: CapaInstaller — a separate CapaSystems product; do not apply this page to any other.

### Description

Defines when end user cancellation messages should be displayed using an Alternative Color Scheme(ACS). This will only have effect if CDM_DefineEndUserCancellation is called. Function should be called before Job_InstallationStart.

In the example below only the last end user cancellation balloons is displayed using ACS. If you want the last 2 messages to use ACS call the function with 2 as parameter and so forth.

### Syntax

CMS_UseAlternativeColorSchemeAt(iRemainingCancellations) as Boolean

### Parameters

#### iRemainingCancellations

Defines at how many remaining cancellations an alternative color scheme should be active

### Example

**VBScript**

```vb
If bStatus Then bStatus = CMS_UseAlternativeColorSchemeAt(1)
If bStatus Then bStatus = CDM_DefineEndUserCancellation(3, 99991231, "ALWAYS")
```

[Scripting Guidelines](/capainstaller/vb-scripting-library/scripting-guidelines/)

### Related functions

[CMS Functions](/capainstaller/vb-scripting-library/cms-functions/) [Constants](/capainstaller/vb-scripting-library/addendum/constants/) [Package Property](/capainstaller/vb-scripting-library/addendum/package-property/) [Variables](/capainstaller/vb-scripting-library/addendum/variables/) [Business Unit support](/capainstaller/vb-scripting-library/addendum/business-unit-support/)
