Funzione HasUnoInterfaces

Verifica se un oggetto Uno Basic supporta determinate interfacce Uno.

Restituisce True se sono supportate tutte le interfacce Uno dichiarate, diversamente restituisce False.

Sintassi:

HasUnoInterfaces( oProva, Nome-Interfaccia-Uno 1 [, Nome-Interfaccia-Uno 2, ...])

Tipo di ritorno:

Bool

Parametri:

Nome

Tipo

Descrizione

oTest

Object

l'oggetto Uno Basic da esaminare.

Nome-Interfaccia-Uno 1,
Nome-Interfaccia-Uno 2, ...

String

Nome(i) dell'interfaccia Uno


Esempio:


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

Sostienici!