HasUnoInterfaces-funktion

Tester om et Basic UNO-objekt understøtter bestemte Uno-interfaces.

Returnerer sand, hvis alle oplyste Uno-interfaces er understøttede, ellers returneres falsk.

Syntaks:

HasUnoInterfaces( oTest, UNO-interfacenavn 1 [, UNO-interfacenavn 2, ...])

Return type:

Bool

Parametre:

Name

Type

Description

oTest

Object

the Basic Uno object that you want to test.

Uno-Interface-Name 1,
Uno-Interface-Name 2, ...

String

Uno interface name(s)


Eksempel:


Sub HasInterface
    Dim bHas as Boolean
    Dim oSheet as Object
    oSheet = ThisComponent.Sheets(0) 
    bHas = HasUnoInterfaces( oSheet, "com.sun.star.beans.XIntrospection" )
    Print bHas ' = True
End Sub