Edit

FieldLabel (fieldnametxt [, enumeration])

Result Type: String

Definition: Returns the label name of the specified table.fieldname, as redefined in the Fields section of the MoneyWorks Document Preferences (see Fields). If no label is found, the fieldname is returned.

If the field is an enumerated field with custom names (such as Transaction.PaymentMethod or Product.Colour, then you may supply an enumeration value to get the custom enumeration name.

Examples:  fieldLabel("Product.Category1")

Would return “Style”, if the field label has been set to this in the Preferences, or “Category1” if it is not set.

fieldLabel("Name.Colour", 2)

Would return (in the default case) “Red”, the name of the second colour. If the colour name has been customised then the custom name will be returned.