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 - Show more from this author
106th Street Wheel and Tire http://www.106sttire.com |
Customer::FirstName¶Customer::LastName¶Customer::Address
GetFieldName(Customer::FirstName)¶GetFieldName(Customer::LastName)¶GetFieldName(Customer::Address)
Customer::FirstName¶LastName¶Customer::Address
"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
Note: these functions are not guaranteed or supported by BrianDunning.com. Please contact the individual developer with any questions or problems.