Type | Description |
Return | Description | |||
Results | A Results object that holds the answer of the server to the client's query. |
Use the CreateQuery property to prepare a query to be sent to a server. Use the Execute method to send the query to the server. Use the Definitions property to access the definitions for the expression. Use the Body property to get a specific definition.
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