ExprFltrQueryBldr.ConvertExprUsingDict

Ee824790.c++_on(en-US,CS.10).gifEe824790.vb_off(en-US,CS.10).gif

Use this method to convert an expression in Extensible Markup Language (XML) form containing a reference to a Dictionary object into a SQL filter query string.

Definition

Function ConvertExprUsingDict(pExpr As String,pDict As Object) As String

Parameters

pExpr

A String that contains the expression in XML form.

pDict

A Dictionary object that contains the values referenced by the expression.

Return Values

If this method completes successfully, it returns a String that contains the SQL filter string.

Error Values

This method sets the Number property of the global Err object to S_OK (&H00000000) to indicate success and to standard COM error values to indicate failure. For more information about standard COM errors, see Standard COM Errors. Additional information may be available using the global Err object. In particular, the Description property may contain a text description of the error.

Remarks

In the XML expression, a reference to a Dictionary object is made by preceding the value inside the IMMED-VAL tags with the keyword 'context'. If such a reference is found during conversion of the expression, the reference is replaced with the value read from the Dictionary object.

For more information about memory ownership issues related to COM property and method parameters, see Managing COM Parameter Memory.

See Also

ExprFltrQueryBldr Object


All rights reserved.