> ## Documentation Index
> Fetch the complete documentation index at: https://docs.superoffice.com/llms.txt
> Use this file to discover all available pages before exploring further.

# StringMatrix

> Two-dimensional string array.

Two-dimensional string array.

## Constructors

### StringMatrix()

```crmscript theme={null}
StringMatrix
```

Initializes a new instance of the StringMatrix class.

## Methods

## addCell(String)

Adds a cell to the current row.

```crmscript theme={null}
Void addCell(String value)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

## addRow()

Adds a row to the matrix.

```crmscript theme={null}
Void addRow()
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

## clear()

Clears the whole matrix.

```crmscript theme={null}
Void clear()
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

## deleteRow(Integer)

Deletes a row from the matrix.

```crmscript theme={null}
Void deleteRow(Integer row)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

## getCell(Integer,Integer)

Returns the value for a given cell.

```crmscript theme={null}
String getCell(Integer row, Integer column)
```

**Returns:** [CRMScript.Global.String](CRMScript.Global.String) - The value of the cell at the specified position.

## getNumColumns(Integer)

Returns number of columns in a given row

```crmscript theme={null}
Integer getNumColumns(Integer row)
```

**Returns:** [CRMScript.Global.Integer](CRMScript.Global.Integer) - The numbers of columns (cells) in the given row.

## getNumRows()

Returns the number of rows in the matrix.

```crmscript theme={null}
Integer getNumRows()
```

**Returns:** [CRMScript.Global.Integer](CRMScript.Global.Integer) - The number of rows in the matrix.

## setCell(Integer,Integer,String)

Sets the value of the specified cell.

```crmscript theme={null}
Vodi setCell(Integer row, Integer column, String value)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)


## Related topics

- [StatLib](/en/automation/crmscript/reference/CRMScript.Native.StatLib.md)
- [SearchEngine](/en/automation/crmscript/reference/CRMScript.Native.SearchEngine.md)
- [Running a query](/en/automation/crmscript/searchengine/se-run.md)
- [Ticket](/en/automation/crmscript/reference/CRMScript.Native.Ticket.md)
- [Namespace CRMScript.Native](/en/automation/crmscript/reference/CRMScript.Native.md)
- [Using StatLib class in CRMScript for reporting](/en/automation/crmscript/tutorials/using-crmscript-statlib-for-reporting.md)
