    

 ## On this page

  

 

 # ResponseVarArr Class

 Last update: 19.06.2026 

**Namespace:** `Phoenix.Optimization`

## Overview

summary&gt; Get/set flag indicatining if response variable array has error /summary&gt;

## Inheritance

![ResponseVarArr](/sites/default/files/git_ansys/markdown_3306fa4fe71ffce83fd2860374ec3ee5_automation/class_phoenix_1_1_optimization_1_1_response_var_arr.png)

## Declaration

```csharp
class ResponseVarArr

```

## Description

summary&gt; Get/set flag indicatining if response variable array has error /summary&gt;

## Public Member Functions

TypeNameDescription<a href="">ResponseVariable</a>`AddNew (string name, bool isInMC, bool isItOutput)`bool`CheckIndexAndDuplicatedNames (bool doPopulateErrText)`void`Clear ()`void`CopyTo (ResponseVarArr arrTo)`<a href="">ResponseVariable</a>`FindByName (string name)`<a href="">ResponseVariable</a>`FindOrCreateNewVar (string name, bool isInMC=true, bool isItOutput=true)`IEnumerator&lt; ResponseVariable &gt;`GetEnumerator ()`bool`IsEqualTo (ResponseVarArr varArrToCompare)`ResponseVarArr`MakeCopy ()`bool`RemoveVar (int varIndex, bool doRebuildIndexAndCheckName=true)`bool`RemoveVar (ResponseVariable var, bool doRebuildIndexAndCheckName=true)``ResponseVarArr ()`summary&gt; Get/set flag indicatining if response variable array has error /summary&gt;## Properties

TypeNameDescriptionint`Count [get]`string`ErrText [get, set]`summary&gt; Gets "Count" /summary&gt;bool`HasErrors [get, set]`summary&gt; Get/Set Error text /summary&gt;<a href="">ResponseVariable</a>`this[int index] [get]`<a href="">ResponseVariable</a>`this[string name] [get]`Return the first occurence of the## Constructor &amp; Destructor Documentation

### ResponseVarArr()

```csharp
ResponseVarArr ( )

```

summary&gt; Get/set flag indicatining if response variable array has error /summary&gt;

## Member Function Documentation

### CheckIndexAndDuplicatedNames

```csharp
bool CheckIndexAndDuplicatedNames ( bool doPopulateErrText)

```

**Returns:**

- true if there is duplicated names otherwise returns false

### ErrText

```csharp
string ErrText

```

summary&gt; Gets "Count" /summary&gt;

### HasErrors

```csharp
bool HasErrors

```

summary&gt; Get/Set Error text /summary&gt;

### this

```csharp
ResponseVariable this[string name]

```

Return the first occurence of the

**Parameters:**

- `name` -

## Property Documentation

### ErrText

```csharp
string ErrText

```

summary&gt; Gets "Count" /summary&gt;

### HasErrors

```csharp
bool HasErrors

```

summary&gt; Get/Set Error text /summary&gt;

### this

```csharp
ResponseVariable this[string name]

```

Return the first occurence of the