Módulo
Contido
Índice 🔎︎

# ThisComponent Statement

Addresses the active component so that its properties can be read and set. ThisComponent is used from document Basic, where it represents the document the Basic belongs to. The type of object accessed by ThisComponent depends on the document type.

## Sintaxe:

    ThisComponent

## Exemplo:

    Sub Main
    REM actualiza o «Índice» nun documento de texto
    Dim allindexes, index As Object
        allindexes = ThisComponent.getDocumentIndexes()
        índice = allindexes.getByName("Índice1")
        REM usa o nome predefinido para o Índice e o número 1
        index.update()
    End Sub