Previous Document Next Document
DataField.FieldWidth

Property FieldWidth As Long

Member of DataField

The FieldWidth property returns or sets the width of a data field as seen in the Spreadsheet editor of the Object Data Manager docker.

The following code example calculates and displays the total width of all data fields.

Sub Test() 
 Dim df As DataField 
 Dim w As Long 
 w = 0 
 For Each df In ActiveDocument.DataFields 
  w = w + df.FieldWidth 
 Next df 
 MsgBox "Total width of all " & ActiveDocument.DataFields.Count & " 
data fields is " & w & " units" 
End Sub 

Previous Document Next Document Back to Top

Copyright 2007 Corel Corporation. All rights reserved.