Previous Document Next Document

Object Model Reference : Classes : D : DataField : Properties : DataField.FormatType


DataField.FormatType

Property FormatType As cdrDataFormatType

Description

Member of DataField

The FormatType property returns the format type for a data field. The format type can be one of the following: General, Date/Time, Linear/Angular, or Numeric.

The FormatType property returns a read-only value.

VBA example

The following VBA example changes the format of all numeric data fields.

Sub Test()
 Dim df As DataField
 For Each df In ActiveDocument.DataFields
  If df.FormatType = cdrFormatNumeric Then
   df.Format = "#,##0 K"
  End If
 Next df
End Sub

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.