ThisComponent Object

Addresses the active component whose properties can be read and set, and whose methods can be called. ThisComponent is used in Basic, where it represents the current document. Properties and methods available through ThisComponent depend on the document type.

Syntax:

ThisComponent

Example:


Sub Main
REM āĻĻā§āĻŦāĻžāĻ°āĻž āĻĒāĻžāĻ ā§āĻ¯ āĻ¨āĻĨāĻŋāĻ¤ā§‡ "āĻ¸ā§‚āĻšāĻŋāĻĒāĻ¤ā§āĻ°" āĻšāĻžāĻ˛āĻ¨āĻžāĻ—āĻžāĻĻ āĻ•āĻ°āĻž āĻšā§Ÿ
Dim allindexes, index As Object
    allindexes = ThisComponent.getDocumentIndexes()
    index = allindexes.getByName("Table of Contents1")
    REM āĻ āĻ¸ā§‚āĻšāĻŋāĻĒāĻ¤ā§āĻ° āĻāĻŦāĻ‚ a 1 āĻāĻ° āĻœāĻ¨ā§āĻ¯ āĻĒā§‚āĻ°ā§āĻŦāĻ¨āĻŋāĻ°ā§āĻ§āĻžāĻ°āĻŋāĻ¤ āĻ¨āĻžāĻŽ āĻŦā§āĻ¯āĻŦāĻšā§ƒāĻ¤ āĻšā§Ÿ
    index.update()
End Sub

Please support us!