Difference between revisions of "Component: CSV Read/Write (Runtime Tools)"
From Flowcode Help
Jump to navigationJump to searchLine 39: | Line 39: | ||
CSV Component used with File SD component: {{Fcfile|CSVTest.fcfx|CSV Test}} | CSV Component used with File SD component: {{Fcfile|CSVTest.fcfx|CSV Test}} | ||
− | CSV Component used with App Developer File component: {{Fcfile| | + | CSV Component used with App Developer File component: {{Fcfile|CSVTestAD.fcfx|CSV Test AD}} |
Revision as of 11:35, 16 November 2022
Author | Matrix TSL |
Version | 1.0 |
Category | Runtime Tools |
Contents
CSV Read/Write component
A component to simplify the task of creating and dumping data to a CSV file that can be loaded into Microcoft Excel or LibreOffice Math to create nice charts and graphs.
Component Pack
FREE
Detailed description
No detailed description exists yet for this component
Examples
Simple example file to generate a two column CSV file that can be loaded into Microsoft Excel or LibreOffice Math.
CSV Component used with File SD component:
CSV Test
CSV Component used with App Developer File component:
CSV Test AD
The component requires linking to a File component to provide access to the file system for simulation and runtime, this could be the File SD, File RPI or File AppDeveloper components.
Downloadable macro reference
![]() |
CloseFile |
Closes the file and finishes off any pending writes ready for use in an external application. | |
![]() |
Return |
![]() |
SequentialReadString |
Reads the contents of a cell as a string. Automatically moved to the next data cell after a read. | |
![]() |
Return |
![]() |
AddString |
Adds a string to the CSV followed by a comma. This will form a single column of data in the CSV file. | |
![]() |
data |
![]() |
Return |
![]() |
ReadAsString |
Reads the contents of a cell as a string | |
![]() |
Column |
![]() |
Row |
![]() |
Return |
![]() |
SequentialReadNumber |
Reads the contents of a cell as a number. Automatically moved to the next data cell after a read. | |
![]() |
Return |
![]() |
AddNumber |
Adds a number to the CSV followed by a comma. This will form a single column of data in the CSV file. | |
![]() |
data |
![]() |
Return |
![]() |
ReadAsNumber |
Reads the contents of a cell as a number. | |
![]() |
Column |
![]() |
Row |
![]() |
Return |
![]() |
SetSequentialIndex |
Sets the index for sequential reads. Index is automatically reset to 0 after a file open. | |
![]() |
Index |
![]() |
Return |
![]() |
NextRow |
Move to the next row in the file | |
![]() |
Return |
Property reference
![]() |
Properties |
![]() |
Filepath |
Sets the path of the file to write to. $(srcdir) default sets the path to be the same as the Flowcode project path. |