# fsVarsGetRegisteredNamedVarId {{< callout context="note" title="NOTE" icon="outline/bulb" >}} Deprecated. Use `fsVarsGetLVarId` instead. {{< /callout >}} The **fsVarsGetRegisteredNamedVarId** function can be used get the FsNamedVarId of a specific NamedVar.   ##### Syntax ``` wasm FsNamedVarId fsVarsGetRegisteredNamedVarId( const char* name ); ```   ##### Parameters {{< table-wrapper >}} | Parameters | Description | |------------|---------------------------| | `name` | The name of the variable. | {{< /table-wrapper >}}   ##### 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 ``` wasm FsNamedVarId namedVarId = fsVarsGetRegisteredNamedVarId("TOTO"); ```