The GetDefinitions attribute function determines all used variable names of the class.
Syntax | ||||||
GetDefinitions(ElementTypes [, UserID]) | ||||||
Return value | ||||||
Type |
Description |
| ||||
String() |
List of the found elements |
| ||||
Parameter | ||||||
Use |
Name |
Type |
Passing |
Description | ||
Required |
ElementTypes |
ElementTypes |
ByVal |
Type group | ||
Optional |
UserID |
String |
ByVal |
User ID of the user | ||
ElementTypes |
Description |
1 – Objects |
Defined object definitions |
2 – ObjectReferences |
Defined object references |
4 – Pointer |
Defined object pointers |
8 – Features |
Other defined features |
16 – Forms |
Defined formulars |
32 – Menus |
Defined menus |
64 – Toolbars |
Defined toolbars |
128 – Constants |
Defined constants and constant groups |
256 – Functions |
Defined functions |
512 – MultiDecisionTables |
Defined multi decision tables |
1024 – Sheets |
Defined sheet elements |
2048 – Matrixes |
Defined matrix elements |
4096 – Dictionaries |
Defined dictionaries |
8192 – Tables |
Defined table elements |
16384 – Fuzzy diagrams |
Defined fuzzy diagrams |
Example:
Retrieving of all features and objectsof the class Cars, which is locked by user Admin.
Dim c As Class, ElementList() As String
c := ::Cars
ElementList := c.GetDefinitions(TCEServer.ElementTypes.Features Or TCEServer.ElementTypes.Objects, "Admin")