# void ObjList::SetCommand(str, Obj)

[Family: ObjList](/imperivm/en/CKS/familias/objlist/)

## Exact signature

```text
void ObjList::SetCommand(str, Obj)
```

## Description

After validating the receiver and target Obj, calls virtual [field] with zero on each eligible member, creates an object-target command with selector 2, submits it through virtual [field] with false, and updates command state.

## Parameters and return type

**Return type:** `void`

The member is called on an object. Its receiver is not repeated among this signature’s arguments.

| Position | Type |
| --- | --- |
| 1 | `str` |
| 2 | `Obj` |

## Other overloads

Check the exact signature. A description of one overload does not automatically document the others.

- [`void ObjList::SetCommand(str)`](/imperivm/en/CKS/reference/api-be62359e472182/)
- [`void ObjList::SetCommand(str, point)`](/imperivm/en/CKS/reference/api-588c24e3c4638d/)

## Read and share

- [Markdown](/imperivm/exports/en/cks/api-4d26dcef43dbda.md)
- [JSON](/imperivm/CKS/api/entries/api-4d26dcef43dbda?lang=en)

Keep the notes and limitations when reusing this description. Do not infer undocumented parameter meanings, units or effects.
