Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 9.3   9.4   9.5   10.0   10.1   10.2   10.3   10.4   10.5   10.6    Statistic    FMM    Blog  

Matrix.CSVSplit

Splits CSV text.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
Matrix 10.5 Yes Yes Yes Yes Yes
MBS( "Matrix.CSVSplit"; Text { ; Delimiter } )   More

Parameters

Parameter Description Example Flags
Text The CSV text. "Hello;World"
Delimiter The delimiter to use.
If empty, we auto detect it.
";" Optional

Result

Returns matrix or error.

Description

Splits CSV text.
Plugin automatically detects if tab, comma or semicolon is used.
Returns new matrix with all values.
Width is defined by first row.

Please call Matrix.Release later to free the matrix object.

Examples

Test it by sparsing and putting back to CSV:

SetzeVar ([

matrix = MBS( "Matrix.CSVSplit"; "FirstName;LastName;City¶Joe;Miller;Las Vegas¶Bob;\"Johnson-Meyer\";\"Köln\"");
text = MBS("Matrix.CSV"; matrix);
r = MBS("Matrix.Release"; matrix)

]; text )

See also

Blog Entries

Release notes

Created 11st October 2020, last changed 2nd November 2020


Matrix.CSV   -   Matrix.Clear

Feedback: Report problem or ask question.




Links
MBS Xojo Plugins