NOTE

Deprecated. Use fsVarsLVarSet instead.

The fsVarsNamedVarSet function can be used to set the value of a specific NamedVar.

Syntax
void fsVarsNamedVarSet(
    FsNamedVarId var,
    FsUnitId unit,
    double value
);
Parameters
ParametersDescription
varThe ID of a NamedVar .
unitThe ID of a unit (found using fsVarsGetUnitId).
valueThe new value of the simvar.
Return Values

This function does not return a value.

Example
FsUnitId unitId = fsVarsGetUnitId("DEGREES");
FsNamedVarId namedVarId = fsVarsRegisterNamedVar("TOTO");
double newValue = 123;
if (fsVarsNamedVarSet(namedVarId , unitId, newValue) == FS_VAR_ERROR_NONE)
{
    // valid
}
else
{
    // error
}

0/255