Show pageOld revisionsBacklinksAdd to bookBack to top This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. ====== DetectFileSyntax ====== Method of [[:scripting:api:settings:start|ISettings]] ===== Description ===== Detects syntax based on file name ===== Parameters ===== * [[scripting:api:data-type:BSTR|BSTR]] **strPath** ==== Return Value ==== * [[scripting:api:data-type:VARIANT|VARIANT]] **pSyntax** ===== Syntax ===== ==== JavaScript ==== <code javascript> var pSyntax = Settings.DetectFileSyntax(strPath); </code>==== Visual Basic Script ==== <code vb> pSyntax = Settings.DetectFileSyntax strPath </code>==== C++ ==== <code cpp> VARIANT Syntax; HRESULT hr = Settings.DetectFileSyntax(strPath, &Syntax); </code>===== See Also ===== [[:scripting:api:settings:start|ISettings]] ~~NOTOC~~