ExpressionStore.NewExpression

Ee799443.c++_on(en-US,CS.10).gifEe799443.vb_off(en-US,CS.10).gif

Use this method to return an ADO hierarchical Recordset object that contains an empty expression.

Definition

Function NewExpression() As Object

Parameters

None.

Return Values

If this method completes successfully, it returns a hierarchical Recordset object that contains an empty expression.

Error Values

This method sets the Number property of the global Err object to S_OK (&H00000000) to indicate success and to either standard or custom COM error values to indicate failure. For more information about standard COM errors, see Standard COM Errors.

The following table shows the custom COM errors that this method can return.

Constant Value Description
E_EXPR_BADCONNECTION &H8110001F Invalid connection
E_EXPR_NOCONNECTIONSTRING &H8110000D No connection string specified

Remarks

Populate the returned Recordset object with data describing the new expression. For information on the format and required fields of the Recordset object, see Expression Recordset.

Save the newly defined expression to the expression store using the SaveExpression method. The SaveExpression method automatically generates a new, unique expression ID and stores it with the new expression.

Call the Connect method before calling the NewExpression method.

See Also

ExpressionStore Object

ExpressionStore.Connect

ExpressionStore.SaveExpression


All rights reserved.