Parse method (NotesDominoQuery - LotusScript)
Parses a DQL query string for correct syntax.
Defined in
Syntax
Set parsestring = NotesDominoQuery.Parse(Query$)
Parameters
Query$
String. A query in DQL syntax.
Return value
String
The error messages produced by a malformed query are self-explanatory.
Example
Dim Query$ as String
Dim ParseString 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 ParseString = TheQuery.Explain(Query$)
In this case the !=
operator is an error and the single quotes beginning
‘Stevens
are not closed.
For more information about DQL syntax, see the Domino Query Language documentation.
Language cross reference
<xref href="H_PARSE_METHOD_JAVA.dita"/>