Función HasUnoInterfaces

Comproba se un obxecto Uno de Basic soporta determinadas interfaces Uno.

Returns True, if all stated Uno interfaces are supported, otherwise False is returned.

Sintaxe:

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

Return type:

Bool

Parámetros:

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)


Exemplo:


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

Precisamos da súa axuda!