---
title: "SetOptionValue (Opus Funktion)"
---
[TOC]

#### Beschreibung

Writes a new option value to the database for the current user and updates the cache.

#### Argumente

<table style="table-layout: fixed; width: min(100%, 673px);"><colgroup><col style="width: 14.6%"><col style="width: 11.6%"><col style="width: 73.8%"></colgroup><tr><th><p><strong>Name</strong></p></th><th><p><strong>Typ</strong></p></th><th><p><strong>Beschreibung</strong></p></th></tr><tr><td><p> ModuleID</p></td><td><p><a href="/smt-school-professional/technische-dokumentation/opus-dokumentation/standard-datentypen/integer/">integer</a></p></td><td><p>unique numeric ID of the owning module</p></td></tr><tr><td><p> OptionID</p></td><td><p><a href="/smt-school-professional/technische-dokumentation/opus-dokumentation/standard-datentypen/integer/">integer</a></p></td><td><p>numeric option ID constant</p></td></tr><tr><td><p>Value</p></td><td><p><a href="/smt-school-professional/technische-dokumentation/opus-dokumentation/standard-datentypen/string/"><u>string</u></a></p></td><td><p>new value as a string (integers/booleans encoded as numeric strings)</p></td></tr></table>

#### Rückgabewert [<u>integer</u>](../../standard-datentypen/integer.md)

1 on success, 0 on failure

#### Beispiel

`xxx`

#### Siehe auch

---
