Let's provide some background information about the CustomFormat format (note that CustomFormat and CustomParse are twin properties). As an example scenario, we'll keep our Salary field bound to the Edit1 button:
- The CustomFormat format's default value is an empty string. The value is not formatted and is sent to the other end of the binding as is (this is the same value you would get by accessing the TField.AsString value).
- The following are the conventions and peculiarities of the expression:
- %s is a placeholder for the textual representation of the current data value.
- Value is a reference to the underlying TField.Value of the field that's associated through the binding. Its type is Variant.
- Self is a reference to the underlying TField associated with the binding.
- The expression engine supports dot notation, method invocation, and property access (including indexed ones), which...