DIAdem Help

Method: IsKindOf for Browser <DataFinder>

  • Updated2024-09-12
  • 2 minute(s) read

Method: IsKindOf for Browser <DataFinder>

Determines whether the file browser of a DataFinder is open.

bIsKindOf = Object.IsKindOf(Case)
ObjectBrowser <DataFinder>
Object with this method
CaseString
Specifies the type of the browser.
eDataFinderBrowser File browser of a DataFinder
bIsKindOfBoolean
If you select elements, the return value of the IsKindOf method is TRUE, if the file browser of a DataFinder is open, otherwise FALSE.

The following example displays whether the browser of a DataFinder or of a data store is open:

VBScriptPython

 

Dim oMyBrowser
Set oMyBrowser = Navigator.Display.CurrDataProvider.Browser
If(oMyBrowser.IsKindOf(eDataFinderBrowser)) Then
  Call MsgBoxDisp("DataFinder Browser")
Else 
  Call MsgBoxDisp("No DataFinder Browser")
End If
Note  Replace the object CurrDataProvider used in the example with the properties CurrDataFinder and CurrDataStore from the Display object. Use the CurrDataProvider object if it is not clear which object it is. Use the IsKindOf method to specify the object type.