---
name: "XmCommandSetValue"
section: "3"
platform: "linux"
package: "openmotif"
version: "2.3.8-4"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/XmCommandSetValue"
---

# XmCommandSetValue(3)

A Command function that replaces a displayed string

## NAME

**XmCommandSetValue** — A Command function that replaces a displayed string

## SYNOPSIS

```
#include <Xm/Command.h>
void XmCommandSetValue(
Widget widget,
XmString command);
```

## DESCRIPTION

**XmCommandSetValue** replaces the string displayed in the command area of the Command widget with the passed **XmString**.

- *widget*

  Specifies the Command widget ID

- *command*

  Specifies the passed **XmString**

For a complete definition of Command and its associated resources, see [**XmCommand**(3)](/XmCommand/3.md).

## RELATED

[**XmCommand**(3)](/XmCommand/3.md).
