Description

[Properly formed] McDBQuery instances contain both a specification of the information being sought (i.e. the query) and the database(s) to be searched (i.e. the context). This method allows such a query to execute (i.e without a context object, such as an McDBNode) and returns its result node set.

Return Type

A McDBNodes object.  

Returns the McDBNodes collection of objects from this McDBQuery specification. The McDBNode instances in this collection may span multiple databases.

Syntax

object.Execute

The Execute Method syntax has these parts:

PartDescription
objectAn expression evaluating to an object of type McDBQuery.

Remarks

This method executes the specified query on all of the registered databases for this McDBQuery database wide.

Exceptions

Error Value Description
E_PENDING &H8000000A The database context has not been established. Call AttachDatabase().
E_FAIL &H80004005 The McDBQuery failed to execute. Check for matched calls to OpenBracket and CloseBracket.