codeType Property

Microsoft FrontPage Visual Basic

codeType Property

Returns or sets a String that represents the Internet media type, or MIME type, for the code associated with the object.

expression.codeType

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

Example

The following example specifies the URL of the Java class file and code type, and assigns an id attribute for the first OBJECT element in the active document. This example assumes that you have at least one OBJECT element in the active document.

    Sub SetJavaCodeURL()
    Dim objJavaCode As FPHTMLObjectElement
    
    Set objJavaCode = ActiveDocument.all.tags("object").Item(0)
    
    With objJavaCode
        .code = "javacode.class"
        .codeType = "ASCII"
        .Id = "Java Code File"
    End With
End Sub