tag2field$

Syntax

fieldname = tag2field$ (tag)

Arguments

fieldname: text

tag: database variable

Meaning

If the command has been successfully executed, fieldname will contain the fieldname of the tag. If no fieldname has been provided for this tag in the database, fieldname will get the tag itself as value. If an error occurs, fieldname will be an empty string. If you invoke this function from a stand-alone adapl, you will get the name as it was filled in for the default language. Collections first checks if the name is available in the active language, if not, it will look for the default language.

Example

fieldname = TAG2FIELD$ ('ti')

Result

fieldname will contain the name that the tag ti has in the active database. This will probably be Title.