Get number of columns Version 1 (.Net)
Action group: Excel
Description
The action gets the number of columns in the table. Columns within the used context range are counted. If a row specified is outside the used context range, the action returns an empty result.
Action icon
Settings of parameters
Property | Description | Type | Filling example | Mandatory field |
Parameters | ||||
Context | Action context for working with an Excel document | Robin.Excel | Excel context | Yes |
Row index | The index of the row whose number of columns you want to get. | Robin.Numeric | Yes | |
Skip hidden columns | If value is «true», the action will only read the visible columns. | Robin.Boolean | true | No |
Skip empty columns | If the value is «true», the action will only read the filled columns. | Robin.Boolean | true | No |
Results | ||||
Result | The number of columns from the specified row. | Robin.Numeric |
Special conditions of use
The robot will return an error if the negative row index or 0 is entered.
Example of use
Task
There is an Excel-document with a table.
Get the number of filled columns in row 1.
Solution
Use the "Open", "Get number of columns", "Close" actions.
Implementation
Assemble a robot scheme with the actions.
- Set the "Open" action parameters.
- Set the "Get number of columns" action parameters.
- Set the "Save" action parameters.
- Set the "Close" action parameters.
- Click "Start" and see the result.
Result
The number of columns is counted.
Обзор
Инструменты контента