Object Model Reference : Classes : D : DataItem : Properties : DataItem.Value |
Property Value As Variant
Member of DataItem
The Value property returns or specifies the actual variant data stored in the DataItem object. For example, if the Cost field is set to 10, then FormattedValue returns the string $10.00 while Value returns a numeric 10.
The Name and CDRStaticID fields are read-only and cannot be modified.
Value is the default property of the DataItem class.
The following VBA example shows a list of all object data items assigned to the selected shape.
Sub Test() |
Dim di As DataItem |
Dim s As String |
s = "Field = Formatted/Value" & vbCr |
For Each di In ActiveShape.ObjectData |
s = s & vbCr & di.DataField.Name & " = " & di.FormattedValue & " / " & di.Value |
Next di |
MsgBox s |
End Sub |
Copyright 2013 Corel Corporation. All rights reserved.