M-Files API 23.11.13135.0
SetTypedValueExpression Method
Expression Object : SetTypedValueExpression Method
Note that this method only works with the data types MFDatatypeLookup and MFDatatypeMultiSelectLookup.
Identifies the target value list.

Defines an optional data function for modifying the expression result. The data function availability depends on the evaluated data type.

In scripting languages, a specific null value (e.g., Nothing in VBScript) should be used to indicate the default value.

Description
Sets the TypedValue expressions.

Sets the TypedValue expressions.

Only works with the data types MFDatatypeLookup and MFDatatypeMultiSelectLookup.
Syntax
Visual Basic
Public Sub SetTypedValueExpression( _
   ByVal DataType As MFDataType, _
   ByVal ValueList As Long, _
   ByVal PCBehavior As MFParentChildBehavior, _
   Optional ByVal DataFunctionCall As DataFunctionCall = 0 _
) 
Parameters
DataType
ValueDescription
MFDatatypeACLThe access control list (ACL).
MFDatatypeBooleanBoolean.
MFDatatypeDateDate.
MFDatatypeFILETIMEFILETIME (a 64-bit integer). Not used in the properties.
MFDatatypeFloatingA double-precision floating point.
MFDatatypeIntegerA 32-bit integer.
MFDatatypeInteger64A 64-bit integer. Not used in the properties.
MFDatatypeLookupLookup (from a value list).
MFDatatypeMultiLineTextMulti-line text.
MFDatatypeMultiSelectLookupMultiple selection from a value list.
MFDatatypeTextText.
MFDatatypeTimeTime.
MFDatatypeTimestampTimestamp.
MFDatatypeUninitializedUnknown type (not yet set to any type).
Note that this method only works with the data types MFDatatypeLookup and MFDatatypeMultiSelectLookup.
ValueList
Identifies the target value list.
PCBehavior
ValueDescription
MFParentChildBehaviorIncludeChildValuesAccepts matches to child values as well.
MFParentChildBehaviorIncludeParentValuesAccepts matches to parent values as well.
MFParentChildBehaviorNoneNo special behavior.
DataFunctionCall

Defines an optional data function for modifying the expression result. The data function availability depends on the evaluated data type.

In scripting languages, a specific null value (e.g., Nothing in VBScript) should be used to indicate the default value.

Remarks

 This expression type can be used to compare any property in an object with a right-hand value.

See Also

Expression Object  | Expression Members