language Property

Microsoft FrontPage Visual Basic

language Property

Returns or sets a String that represents the language in which the script for the specified object is written.

expression.language

expression    Required. An expression that returns one of the objects in the Applies To list.

Remarks

The language property can be one of the following String values:

ValueDescription
C#Script is written in C#.
CSScript is written in C#.
CSharpScript is written in C#.
JScriptScript is written in JScript.
JavaScriptScript is written in JavaScript.
JSScript is written in JavaScript.
VBSScript is written in Visual Basic Scripting Edition (VBScript).
VBScriptScript is written in VBScript.
VBScript is written in Microsoft Visual Basic.
VisualBasicScript is written in Visual Basic.
XMLScript is written in XML.
languageScript is a browser-supported language.

Example

The following example sets the language to "JavaScript" for the first SCRIPT element in the active document. This example assumes that there is at least one script element in the active document.

    Dim objScript As FPHTMLScriptElement

Set objScript = ActiveDocument.Scripts.Item(0)
objScript.Language = "JavaScript"