NOTE

Deprecated. Use fsVarsLVarGet instead.

The fsVarsNamedVarGet function can be used to get the value of a specific NamedVar.

Syntax
void fsVarsNamedVarGet(
    FsNamedVarId var,
    FsUnitId unit,
    double* result
);
Parameters
ParametersDescription
varThe ID of a named var.
unitThe ID of a unit (found using fsVarsGetUnitId).
resultThe value that will receive the value of the NamedVar.
Return Values

This function does not return a value.

Example
FsUnitId unitId = fsVarsGetUnitId("DEGREES");
FsNamedVarId namedId = fsVarsRegisterNamedVar("TOTO");
double result = 0;
if (fsVarsNamedVarGet(namedId , unitId, &result) == FS_VAR_ERROR_NONE)
{
    // valid
}
else
{
    // error
}

0/255