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é
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.

Under construction. Email me your wish list for improvements.