Explain method (NotesDominoQuery - LotusScript)

Executes a query string passed in according to set parameters and returns an explain string to indicate how the query was executed.

Defined in

NotesDominoQuery

Syntax

Set explainstring = NotesDominoQuery.Explain(Query$)

Parameters

Query$

String. A query in DQL syntax.

Return value

String

To understand and work with explain output, see explain.

Example

Dim Query$ as String
Dim ExplainString as String
Dim NotesDatabase db
Dim TheQuery As NotesDominoQuery
Set db = Session.Getdatabase("my.nsf")
Set TheQuery = db.Createdominoquery()
Set Query$ = "firstname = 'Annabelle' and lastname = 'Stevens' and 'Personview'.dept = 'Sales'"
Set ExplainString = TheQuery.Explain(Query$)

Language cross-reference

explain method (DominoQuery - Java)