# fsVarsNamedVarSet {{< callout context="note" title="NOTE" icon="outline/bulb" >}} Deprecated. Use `fsVarsLVarSet` instead. {{< /callout >}} The **fsVarsNamedVarSet** function can be used to set the value of a specific Named Var.   ##### Syntax ``` wasm void fsVarsNamedVarSet( FsNamedVarId var, FsUnitId unit, double value ); ```   ##### Parameters {{< table-wrapper >}} | Parameters | Description | |------------|-------------------------------------------------------------------------| | `var` | The ID of a named Var . | | `unit` | The ID of an unit (found using [fsVarsGetUnitId](fsvarsgetunitid/)). | | `value` | The new value of the simvar. | {{< /table-wrapper >}}   ##### Return Values The function returns a `FsVarError`, 0 means there is no error.   ##### Example ``` wasm FsUnitId unitId = fsVarsGetUnitId("DEGREES"); FsNamedVarId namedVarId = fsVarsRegisterNamedVar("TOTO"); double newValue = 123; if (fsVarsNamedVarSet(namedVarId , unitId, newValue) == FS_VAR_ERROR_NONE) { // valid } else { // error } ```