Format

This event is used to reformat the content of a field, for example to unify a date or amount format or removing prefixes and suffixes. This event prepares the field data for validation.

Note: The content of
pField.Text
is typically used for learning within the Scripting Guide engines. To change the output format for the field content, use the FormatForExport script event.

Syntax

[FieldName]_Format (pField as ISCBCdrField)
Parameter Description
pField Field object

Sample Code

Private Sub Amount_Format(pField as SCBCdrField)
   Dim NewAmount as string
   If MyReformatAmount(pField, NewAmount) = TRUE then
      'reformatting of the text field is successful to prepare a field for validation
      pField.Text = NewAmount
   End if
End Sub