![]()
CSV Tools
An extension for MIT App Inventor 2.Extension to work with CSV files async. Developed by The K Studio.
Specifications
Size: 13.37 KB
Version: 2.1
Minimum API Level: 7
Updated On: 2025-02-03T18:30:00Z
Built & documented using: FAST-CLI
Events:
CSVTools has total 4 events.
OnCSVCreated

Event triggered when a CSV file is successfully created.
| Parameter | Type |
|---|---|
| filePath | text |
OnCSVRead

Event triggered when a CSV file is successfully read.
| Parameter | Type |
|---|---|
| data | list |
OnError

Event triggered when an error occurs while processing CSV file.
| Parameter | Type |
|---|---|
| errorMessage | text |
OnFileUpdated

Triggered when a CSV file is successfully updated.
| Parameter | Type |
|---|---|
| filePath | text |
Methods:
CSVTools has total 13 methods.
ReadCSV

Reads a CSV file from the specified file path. Give a full path to read file from local storage or specify file name from assets to read file from assets.
| Parameter | Type |
|---|---|
| filePath | text |
CreateCSV

Creates a CSV file from a list of columns or rows and saves it to the specified file path. Here data is list of columns or list of rows specified by isColumn boolean.
| Parameter | Type |
|---|---|
| filePath | text |
| columns | list |
GetColumnCount

Returns the number of columns in the CSV file.
| Parameter | Type |
|---|---|
| data | list |
GetRowCount

Returns the number of rows in the CSV file.
| Parameter | Type |
|---|---|
| data | list |
GetRow

Returns the data of a specific row in the CSV file.
| Parameter | Type |
|---|---|
| data | list |
| rowIndex | number |
GetColumn

Returns the data of a specific column in the CSV file.
| Parameter | Type |
|---|---|
| data | list |
| columnIndex | number |
GetCellValue

Returns the value of a specific cell in the CSV file.
| Parameter | Type |
|---|---|
| data | list |
| rowIndex | number |
| columnIndex | number |
GetCellValueByColumnName

Returns the value of a cell specified by column name and row index in the CSV file.
| Parameter | Type |
|---|---|
| data | list |
| columnName | text |
| rowIndex | number |
UpdateCellValue

Updates a specific cell in the CSV file and saves changes.
| Parameter | Type |
|---|---|
| filePath | text |
| rowIndex | number |
| columnIndex | number |
| newValue | text |
UpdateRow

Updates an entire row in the CSV file based on index (1-based index).
| Parameter | Type |
|---|---|
| filePath | text |
| rowIndex | number |
| newRowData | list |
UpdateColumn

Updates a specific column in the CSV file (1-based column index).
| Parameter | Type |
|---|---|
| filePath | text |
| columnIndex | number |
| newColumnData | list |
GetASD
![]()
Returns the app's specific external directory path.
IsCompanion
![]()
Returns true if the app is running in the Companion.
Downoad:
Version 2.1: com.thekstudio.csvtools.aix (13.4 KB)
Test.aia (54.5 KB)





