DIAdem Help

Method: CreateElementList for DataFinder

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

Method: CreateElementList for DataFinder

Creates in the object-oriented script interface of DIAdem NAVIGATOR a collection of DataFinder elements. Each element in the created collection is an Element <DataFinder>>.

Set oFreeElementList = Object.CreateElementList()
ObjectDataFinder
Object with this method
oFreeElementListFreeElementList <DataFinder>
Returned object

The following example creates an elements list, executes a search, adds the search results to the elements list, and displays the number of elements in the list:

VBScriptPython

 

Dim oMyDataFinder, oMyElementList, oMyQuery, oMyResults
Set oMyDataFinder = Navigator.ConnectDataFinder("My DataFinder")
Set oMyQuery = oMyDataFinder.LoadQuery(ConfReadPath & "Query_Example.tdq")
Call oMyDataFinder.SearchElements(oMyQuery)
Set oMyResults = oMyDataFinder.ResultsElements
Set oMyElementList = oMyDataFinder.CreateElementList
Call oMyElementList.AddElementList(oMyResults)
Call MsgBoxDisp(oMyElementList.Count)