Method: CreateElementList for DataFinder
- Updated2024-09-12
- 1 minute(s) read
DIAdem NAVIGATOR > Methods > Method: CreateElementList for DataFinder
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()
| Object | DataFinder Object with this method |
| oFreeElementList | FreeElementList <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:
| VBScript | Python |
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)