HasUnoInterfaces Function

Provjerava da li Basic Uno podržava odredena Uno Sucelja.

Vraca True, ako su sva potvrdena Uno sucelja podržana, u suprotnom False je vracen.

Syntax:

ImaUnoSucelja( oTest, Uno-Sucelje-Ime 1 [, Uno-Sucelje-Ime 2, ...])

Return type:

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)


Example:


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

Please support us!