Syntax.CurrentLanguage Property

Applies to TestComplete 15.47, last modified on January 20, 2023

Description

The Syntax.CurrentLanguage property identifies the scripting language (JavaScript, JScript, Python, VBScript, DelphiScript, C#Script or C++Script) that is used by the user’s current project. You can use this property in your script extension to perform specific operations for different languages. For example, you could use a record-time action in combination with the Recorder.AddTextToScript method to record language-dependent code snippets.

Declaration

Syntax.CurrentLanguage

Read-Only Property String

Applies To

The property is applied to the following object:

Property Value

One of the following strings that holds the scripting language name:

  • JavaScript

  • JScript

  • Python

  • VBScript

  • DelphiScript

  • C#Script

  • C++Script

See Also

Knowing User's Scripting Language
AddTextToScript Method

Highlight search results