![]() |
![]() |
DataItemValue
Property Value As Variant
Member of DataItem
The Value property returns or sets the actual variant data stored in the DataItem. 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 code 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 2007 Corel Corporation. All rights reserved.