On this page
fsVarsNamedVarGet
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
| Parameters | Description |
|---|---|
var | The ID of a named var. |
unit | The ID of a unit (found using fsVarsGetUnitId). |
result | The 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
}Prev
fsVarsLVarSet