Description
Returns a list of all entities classified under the specified application, type, and class.
Syntax
entlistt = Get_Repos_Entities (appID, typeID, classID, Integer [getflags] [, expand] [, remote] [, moreinfo])
Parameters
The Get_Repos_Entities function has the following parameters.
Parameter | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
AppID | Application identifier. If the parameter is null, the current application and its inheritance chain are included. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
TypeID | Types defined for OpenInsight.
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
classID | Valid classIDs are:
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
getflags | The default is false. If set to true, returns repository entities along with flags in an @SVM-delimited array of literals:
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
expand | The default is true. If set to false, returns only entity names (as opposed to fully qualified entity identifiers). | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
remote | The default is false. If set to true uses remote (check-out) repository. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
moreinfo | Used when the list exceeds 64K. Set in calling procedure the first time call is made, then used internally by Get_Repos_Entities to control which 64K block of the list is retrieved. When the full list has been retrieved, set to null. (See the example below.) |
Note: This parameter is obsolete in OpenInsight versions 4 and above. Pass a null value to this parameter. The 64k limit has been removed.
See also
Example
* Count the number of OpenInsight windows in the current application. Declare Function Get_Repos_Entities AppID = @APPID<1> ;* current application TypeID = "OIWIN" ;* OpenInsight Windows ClassID = "" ;* Not Applicable MoreInfo = "" SubList = Get_Repos_Entities(AppID, TypeID, ClassID, "", "", "", "") numEntities = dCount(SubList, @fm) * Count the number of OpenInsight windows in the current application, * as well as the applications it has been inherited from. AppID = "" TypeID = "OIWIN" ;* OpenInsight Windows ClassID = "" ;* Not Applicable MoreInfo = "" SubList = Get_Repos_Entities(AppID, TypeID, ClassID, "", "", "", "") numEntities = dCount(SubList, @fm) * For use with 16-bit systems Declare Function Get_Repos_Entities AppID = @APPID<1> ;* current application TypeID = "OIWIN" ;* OpenInsight Windows ClassID = "" ;* Not Applicable MoreInfo = 1 CNT = 0 Loop SubList = Get_Repos_Entities(AppID, TypeID, ClassID,| "", "", "", MoreInfo) If Len(SubList) Then CNT = (SubList, @FM) +1 End While Len(MoreInfo) Repeat