Brian Dunning's FileMaker Custom Functions

csv.getValue ( array ; rowNum ; [colNum] ; [delimiter] )

Returns a specific cell or row in a CSV table

  Average rating: 4.2 (33 votes) Log in to vote

Nicolas Bourré   Nicolas Bourré - Show more from this author
http://Www.nicolasbourre.com

Share on Facebook Share on Twitter

  Sample input:
csv.getValue (
"productname;saleprice;unitStock¶potatoes;5;252¶ipad;500;10¶fish bowl;10;25¶"
;3;1;";")
  Sample output:
ipad

  Function definition: (Copy & paste into FileMaker's Edit Custom Function window)

This function returns the value of a cell or a complete row from a csv table.

If the user enters a row number without a column number, the function will return the full row.

If the user enters a row number and a column number, the function will return the cell from the given row.

If the row or cell doesn't exist, the function will return an empty value.

Warning!!
You have to count the title row as a row if present.

 

Comments

Kim   Kim, Montreal
Aug 29, 2014
This is the kind of custom functions that i love : simple, concise but smart!
 
Nicolas   Nicolas, Shawinigan
Sep 4, 2014
Ça fait plaisir!
 

Log in to post comments.

 

Note: these functions are not guaranteed or supported by BrianDunning.com. Please contact the individual developer with any questions or problems.

Support this website.

This library has been a free commmunity resource for FileMaker users and developers for 20 years. It receives no funding and has no advertisements. If it has helped you out, I'd really appreciate it if you could contribute whatever you think it's worth: