Visual Basic |
---|
Public Sub SetValue( _ ByVal DataType As MFDataType, _ ByVal Value As Variant _ ) |
Value | Description |
---|---|
MFDatatypeACL | The access control list (ACL). |
MFDatatypeBoolean | Boolean. |
MFDatatypeDate | Date. |
MFDatatypeFILETIME | FILETIME (a 64-bit integer). Not used in the properties. |
MFDatatypeFloating | A double-precision floating point. |
MFDatatypeInteger | A 32-bit integer. |
MFDatatypeInteger64 | A 64-bit integer. Not used in the properties. |
MFDatatypeLookup | Lookup (from a value list). |
MFDatatypeMultiLineText | Multi-line text. |
MFDatatypeMultiSelectLookup | Multiple selection from a value list. |
MFDatatypeText | Text. |
MFDatatypeTime | Time. |
MFDatatypeTimestamp | Timestamp. |
MFDatatypeUninitialized | Unknown type (not yet set to any type). |
If the data type of a typed value is MFDataTypeLookup, a variant given to SetValue can carry either the ID of a lookup as a primitive integer or both the ID and the display value of a lookup as a one-dimensional array.
If the data type of a typed value is MFDataTypeMultiSelectLookup, the caller can supply lookups in one of the following two ways:
1. By passing a single integer. A single primitive integer is interpreted to be the ID part of a lookup. In this case, the multi-select lookup consists of only one lookup.
2. By passing a two-dimensional array containing the IDs and display values of lookups. The IDs must be located in the first column and the display values in the second one.