Type | Description | |||
Strategy | A Strategy object being used to query the server. |
Use the CreateQuery property to prepare a query to be sent to a server. The Strategy property defines the strategies used when queried the server for an expression. The Strategy property is identical with the Strategy parameter of the CreateQuery method.
The following sample queries the "dict.org" server for all definitions for "hot" expression. ( The sample uses the "exact" strategy, but asks all available dictionaries ):
Private Sub Form_Load() Dim c As EXDICTCLIENTLibCtl.Connection Set c = Client1.OpenConnection("dict.org") If Not (c Is Nothing) Then With c.CreateQuery("hot", , c.Strategies("exact")) Dim r As EXDICTCLIENTLibCtl.IResult For Each r In .Execute Dim d As EXDICTCLIENTLibCtl.IDefinition For Each d In r.Definitions Debug.Print d.Body Next Next End With c.Close End If Set c = Nothing End Sub