Brian Dunning's FileMaker Custom Functions

FieldList4SQL ( FieldNameList )

Convert a list of field names to the quoted format for sql use.

  Be the first to rate this function Log in to vote

Philip Wang   Philip Wang - Show more from this author
106th Street Wheel and Tire
http://www.106sttire.com

Share on Facebook Share on Twitter

  Sample input:
FirstName¶LastName¶Address

Customer::FirstName¶Customer::LastName¶Customer::Address

GetFieldName(Customer::FirstName)¶GetFieldName(Customer::LastName)¶GetFieldName(Customer::Address)

Customer::FirstName¶LastName¶Customer::Address
  Sample output:
All the above returns the same output:

"FirstName","LastName","Address"

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

This function is mainly used for my own sql lookup function, so that it can return multiple fields. It can be done by hand crafting the return field name, but I'd rather using a function like this to automatically generated the field list between "SELECT" and "FROM". I use GetFieldName( ) a lot, which always have table name. So this function also strip out the "tablename::" for each line.

 

Comments

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 15 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:

Under construction. Email me your wish list for improvements.