fsVarsGetRegisteredNamedVarId

NOTE: Deprecated. Use fsVarsGetLVarId instead.

The fsVarsGetRegisteredNamedVarId function can be used get the FsNamedVarId of a specific NamedVar.

 

Syntax
FsNamedVarId fsVarsGetRegisteredNamedVarId(
    const char* name
);

 

Parameters
Parameters Description
name

The name of the variable.

 

Return Values

The function returns the right Id associated to the given name. If there is no NamedVar matching the given name, the function will return -1.

 

Example
FsNamedVarId namedVarId = fsVarsGetRegisteredNamedVarId("TOTO");