Description

Assigns the Name property of McDBNode instances returned by this McDBQuery.

Return Type

None  

Syntax

object.SetName Name, [CompOp]

The SetName Method syntax has these parts:

PartDescription
objectAn expression evaluating to an object of type McDBQuery.
NameRequired. A String value.

The (string) McDBNode:IQL~McDBNode.Name McDBNode.Name McDBNode.Name to place in the query by example specification.

CompOpOptional. A mcDBCompOp enumeration, as described in settings.

How result McDBNode instances will compare to Name.

Settings

The settings for CompOp are:

ConstantValueDescription
 mcdbEQ1

Equality (default)

 mcdbLT2

Less than

 mcdbGT4

Greater than

 mcdbGTE5

Greater than or Equal

 mcdbLTE3

Less than or Equal

 mcdbNEQ6

Not Equal

 mcdbIgnoreWildCards16

Wildcards in strings (* and ?) are interpreted as literals

 mcdbIgnoreCase32

Case of characters in strings is ignored

 mcdbIgnoreDiacritics64

Diacritics on characters in strings is ignored

 mcdbIgnoreWhiteSpace128

White space in strings is ignored

 mcdbIgnoreSymbols512

Symbols in strings are ignored

 mcdbMatchSubstring1024

The query string matches if it is a substring of the target property/attribute

 mcdbNoAttribute2048

The Named Attribute does not exist, only valid when using Empty wildcard

Remarks

This method always uses the native McDBNode.Name for comparison purposes. Therefore, it is not possible to find McDBNode instances with a particular alias name using this method.

Exceptions

Error Value Description
E_PENDING &H8000000A The database context has not been established. Call AttachDatabase().