Functie HasUnoInterfaces

Test of een BASIC Uno-object bepaalde Uno-interfaces ondersteunt.

Geeft Waar terug als alle benoemde Uno-interfaces worden ondersteund, anders wordt Onwaar teruggegeven.

Syntaxis:

HasUnoInterfaces(oTest, Uno-Interface-Naam 1 [, Uno-Interface-Naam 2, ...])

Geretourneerde waarde:

Bool

Parameters:

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)


Voorbeeld:


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