# %CoQueryMethod interface

Query for a method.

## Syntax

```
retcode = %CoQueryMethod(Param1, Param2, Param3, … )
```

## Parameter(s)

| Param1 [in] | Dispatch object containing the IDispatch this call is associated with. |
| --- | --- |
| Param2 [in] | Integer identifies how many methods followed here. |
| Param3 [out] | Method name #1. |

## Returns

A Boolean (Success or Fail)

- Success: all of the methods are supported by this object.

- Fail: one of the methods is not supported by this object.

## Error Handling

Call CoGetException to get an error description.

## Comments

The caller can put in an unlimited
amount of method names.

## See also

- [Using the COM interface to FlashBASIC](https://d3codex.com/pickbasic-flashbasic/using-the-com-interface-to-flashbasic/)
- [FlashBASIC automation application interfaces](https://d3codex.com/pickbasic-flashbasic/flashbasic-automation-application-interfaces/)

---
Source: https://d3codex.com/pickbasic-flashbasic/coquerymethod-interface/ - part of the D3Codex reference.
