====== GetUserVariable ====== Method of [[:scripting:api:project:start|IProject]] ===== Description ===== Read user variable value by name ===== Parameters ===== * [[scripting:api:data-type:BSTR|BSTR]] **strName** * [[scripting:api:data-type:BSTR|BSTR]] **strConfiguration** = %%""%% (optional) ==== Return Value ==== * [[scripting:api:data-type:VARIANT|VARIANT]] **pVal** ===== Syntax ===== ==== JavaScript ==== var pVal = Project.GetUserVariable(strName, strConfiguration); ==== Visual Basic Script ==== pVal = Project.GetUserVariable strName, strConfiguration ==== C++ ==== VARIANT Val; HRESULT hr = Project.GetUserVariable(strName, strConfiguration, &Val); ===== See Also ===== [[:scripting:api:project:start|IProject]] ~~NOTOC~~