|
|
|
|
|
- Overview
- Example of retrieval
How to retrieve the analysis structure through programming?
The analysis represents the structure of data files handled by the program. You have the ability to retriev the analysis structure through programming in order to perform checks or to propose a user interface for interrogating a database in a generic way. The following functions are required to retrieve the analysis structure: This example is used to retrieve the list of all files found in the current analysis. For each listed file, the example retrieves: - the list of items,
- the list of keys,
- the list of links.
Example code: // Declare the variables sFileList is string sItemList is string sKeyList is string sLinkList is string  // Load the list of analysis files sFileList = HListFile()  // Browse the list of analysis files FOR EACH STRING sFileName OF sFileList SEPARATED BY CR  // Load the file items sItemList = HListItem(sFileName, hLstDetail) // Load the file keys sKeyList = HListKey(sFileName, hLstDetail) // Load the file links sLinkList = HListLink(sFileName)   Trace("================ FILE ================") Trace("File: ", sFileName) Trace("--- List of items ---") FOR EACH STRING sItem OF sItemList SEPARATED BY CR Trace(sItem) END Trace("--- List of keys ---") FOR EACH STRING sKey OF sKeyList SEPARATED BY CR Trace(sKey) END Trace("--- List of links ---") FOR EACH STRING sLink OF sLinkList SEPARATED BY CR Trace(sLink) END END
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|