It appears the GetFieldName ( field ) function actually evaluates the field while I would assume it just quickly returns the name of the field.
This is a problem when the function is used to test with the fieldname passed as a script parameter within the context of a completely unrelated table, e.g. log table. Or a generic script to replace the New Records menu and behave differently for different tables by also creating related records for example. It then takes a long time to get the field name, presumably to search the actual table of the field via relationships. I have not experienced it would give no result at all.
Do others confirm this behaviour? Why would that be a good or bad thing?
Thanks for your time!